The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 352 Certain Judges and Magistrates not to try certain offences when committed before themselves
Except as provided in sections 344, 345, 349 and 350, no Judge of a Criminal Court (other than a Judge of a High Court) or Magistrate shall try any person for any offence referred to in section 195, when such offence is committed before himself or in contempt of his authority, or is brought under his notice as such Judge or Magistrate in the course of a judicial proceeding.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 391 Certain Judges and Magistrates not to try certain offences when committed before themselves
Except as provided in sections 383, 384, 388 and 389, no Judge of a Criminal Court (other than a Judge of a High Court) or Magistrate shall try any person for any offence referred to in section 215, when such offence is committed before himself or in contempt of his authority, or is brought under his notice as such Judge or Magistrate in the course of a judicial proceeding.
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.