whoever attempts to commit or abets the commission of an offence punishable under this ordinance shall be deemed to have committed that offence. ...