In every case in which sentence of death shall have been passed, [the appropriate Government] may, without the consent of the offender, commute the punishment for any other punishment provided by this Code.
Section 54 IPC
Commutation of sentence of death
The Indian Penal Code, 1860 is repealed. It was replaced by The Bharatiya Nyaya Sanhita, 2023 from 1 July 2024; this provision still applies to matters that arose before then.