380. Whoever commits theft in any building, tent, or vessel, which building, tent, or vessel is used as a human dwelling, or for the custody of property, shall be punished with imprisonment for a term which may extend to ten years, and shall also be liable to fine, and for a second or subsequent offence, shall be punished with imprisonment and shall also be liable to fine or to whipping.