The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 480 Practising pleader not to sit as Magistrate in certain Courts
No pleader who practises in the Court of any Magistrate shall sit as a Magistrate in that Court or in any Court within the local jurisdiction of that Court.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 526 Practising advocate not to sit as Magistrate in certain Courts
No advocate who practices in the Court of any Magistrate shall sit as a Magistrate in that Court or in any Court within the local jurisdiction of that Court.
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.