No offense committed, and no penalty or forfeiture incurred, under any act hereby repealed, and before January 1, 1956, shall be affected by the repeal; except that when a punishment, penalty, or forfeiture is mitigated by the provisions herein contained, such provisions may be applied to the judgment pronounced after December 31, 1955.