Section 4 bars specific relief only when enforcement of a penal law is the sole object of the suit; the word "mere" indicates it must not be the exclusive purpose.
Commissioners Of Rishra Municipality v. Anil Kumar Mustafi1979 Cassie (CAL HC) 36para 6