The repeal of an ordinance shall not revive any ordinance in force before or at the time the ordinance repealed took effect. The repeal of an ordinance shall not affect any punishment or penalty incurred before the repeal took effect, nor any suits, prosecution or proceeding pending at the time of the repeal, for an offense committed under the ordinance repealed.