The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 479 Case in which Judge or Magistrate is personally interested
No Judge or Magistrate shall, except with the permission of the Court to which an appeal lies from his Court, try or commit for trial any case to or in which he is a party, or personally interested, and no Judge or Magistrate shall hear an appeal from any judgment or order passed or made by himself.
Explanation.—A Judge or Magistrate shall not be deemed to be a party to, or personally interested in, any case by reason only that he is concerned therein in a public capacity, or by reason only that he has viewed the place in which an offence is alleged to have been committed, or any other place in which any other transaction material to the case is alleged to have occurred, and made an inquiry in connection with the case.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 525 Cases in which Judge or Magistrate is personally interested
No Judge or Magistrate shall, except with the permission of the Court to which an appeal lies from his Court, try or commit for trial any case to or in which he is a party, or personally interested, and no Judge or Magistrate shall hear an appeal from any judgment or order passed or made by himself.
Explanation.—A Judge or Magistrate shall not be deemed to be a party to, or personally interested in, any case by reason only that he is concerned therein in a public capacity, or by reason only that he has viewed the place in which an offence is alleged to have been committed, or any other place in which any other transaction material to the case is alleged to have occurred, and made an inquiry in connection with the case.
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.