Sec. 8. Misdemeanor—When any act or omission, not a felony, is punishable according to law, by a fine, penalty or forfeiture, and imprisonment, or by such fine, penalty or forfeiture, or imprisonment, in the discretion of the court, such act or omission shall be deemed a misdemeanor.