
240. Every person who uses any violence with intent to deter any person
from acting in any manner as a judge, magistrate, juror, witness, counsel,
agent, prosecutor or party, in any legal proceeding or inquiry, or from acting
in execution of his duty as a magistrate or peace officer, or in any judicial or
official capacity, or from having recourse to any court or public officer, or on
account of his having so acted or had recourse, is guilty of a misdemeanour,
and shall be liable to imprisonment for two years.