(a) The repeal of a Code section or ordinance, or its expiration by virtue of any provision contained therein, shall not effect any right accrued or any offense committed, any penalty or punishment incurred, or any proceeding commenced before the repeal took affect or the ordinance expired. (b) When any ordinance repealing a former Code section, ordinance, clause, or provision, shall be itself repealed, such repeal shall not be construed to revive such former Code section, ordinance, clause, or provision.