The official text
Old and new, side by side
Indian Penal Code, 1860
Section 380 Theft in dwelling house, etc
Whoever commits theft in any building, tent or vessel, which building, tent or vessel is used as a human dwelling, or used for the custody of property, shall be punished with imprisonment of either description for a term which may extend to seven years, and shall also be liable to fine.
Bharatiya Nyaya Sanhita, 2023
Section 305 Theft in a dwelling house, or means of transportation or place of worship, etc
Whoever commits theft—
(a) in any building, tent or vessel used as a human dwelling or used for the custody of property; or
(b) of any means of transport used for the transport of goods or passengers; or
(c) of any article or goods from any means of transport used for the transport of goods or passengers; or
(d) of idol or icon in any place of worship; or
(e) of any property of the Government or of a local authority, shall be punished with imprisonment of either description for a term which may extend to seven years, and shall also be liable to fine.
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.