The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 143 Magistrate may prohibit repetition or continuance of public nuisance
A District Magistrate or Sub-divisional Magistrate, or any other Executive Magistrate empowered by the State Government or the District Magistrate in this behalf, may order any person not to repeat or continue a public nuisance, as defined in the Indian Penal Code (45 of 1860), or any special or local law.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 162 Magistrate may prohibit repetition or Continuance of public nuisance
A District Magistrate or Sub-divisional Magistrate, or any other Executive Magistrate or Deputy Commissioner of Police empowered by the State Government or the District Magistrate in this behalf, may order any person not to repeat or continue a public nuisance, as defined in the Bharatiya Nyaya Sanhita, 2023, or any special or local law.
The texts are India Code’s. The amendment markers and footnotes of the official print are left out, so the old section reads as it stood when it was repealed; State amendments are not shown. The PDFs linked below carry the full history.