The term "felony," when used in any statute, shall mean any violation of law punished with death or confinement in the penitentiary.