This Code, and the repeal in the adopting ordinance of any ordinance, or the repeal of any ordinance, shall not affect any act done, or any right accruing or accrued or established, or any suit or proceeding had or commenced in any civil case, before the time when such repeal shall take effect, or any offense committed, or any penalty or forfeiture incurred, or any suit or prosecution pending at the time of such repeal for any offense committed or for the recovery of any penalty or forfeiture incurred under any of the provisions so repealed. All persons who, at the time when the repeal shall take effect, shall hold any office under any of the ordinances so repealed shall continue to hold the office according to the tenure thereof, except those offices which may have been abolished, and those as to which a different provision shall have been made by such ordinances. No ordinance or part of an ordinance which has been heretofore repealed shall be revived by the repeal of any of the ordinances or parts of ordinances mentioned in this section, and when any ordinance repealing a former ordinance, clause or provision shall itself be repealed, such repeal shall not be construed to revive such former ordinance, clause or provision, unless it shall be expressly so provided.