Gays can get away with breaking that law.
So long as they bribe the police.
That's why section 377 was maintained. India is a place where cops are bigots and misogynists, so they are even willing to let rapists go free - or blame the victim - if the attacker greases their palms. If you're gay, you can stay out of jail if you pay them.
Oh, and by the way, in places like Iran, gays are hanged.
Whenever the Tea Party says that OUR country is heading for an Orwellian dystopia (like say, 1984 or Animal Farm) all I can do is compare it to other places and laugh as loud as I can...
...that government of the PEOPLE, by the PEOPLE, for the PEOPLE, shall not perish from the earth.
- Abraham Lincoln
Support the ideals of democracy. Kick the Tea Party out. Support the Democrats in 2014.