In case of the amendment of any section of this code containing provisions for which a penalty is provided in another section, the penalty so provided in such other section shall be held to relate to the section so amended, whether re-enacted in the amendatory ordinance or not, unless such penalty is specifically repealed therein.