Section 377 in The Indian Penal Code

In 1861, the British began enforcing Section 377 of their penal code, which could punish those who committed sodomy or other homosexual acts with life in prison. This runs as an undertone of several of the movies