A cyclist who carried a taser gun disguised as a torch has been jailed for more than five years.
Cameron Spalding, aged 22, of Fircroft Road, Shiregreen, Sheffield, claimed he carried the gun for protection.
It was discovered when he was stopped by officers in Parson Cross.
Prosecutor Louise Gallagher said Spalding knew how the taser gun worked and had bought it a few days before he was stopped and searched by officers.
When interviewed he told police he had feared being attacked in the street.
“He told officers he would only have used it if attacked,” Ms Gallagher told Sheffield Crown Court.
Benjamin Narain, representing Spalding, said the former steelworker had the taser for protection and had little understanding of how serious it was to carry such a weapon.
Spalding admitted possessing a disguised firearm when his case was heard at court.
He also admitted possessing cannabis - and assaulting a woman by punching her twice in public.
He was in breach of a conditional discharge imposed for an offence of criminal damage and on bail when he was arrested with the taser.
Judge Roger Keen told Spalding, who appeared at court via videolink, that there was a statutory five-year minimum jail term for carrying the taser.
Sentencing him to a total of five years and three months behind bars, he said: “It is a situation you have brought about yourself.”
Taser guns are a weapon which give electric shocks aimed at disrupting muscle function.
Police officers are trained to use them to restrain people.
Despite it being illegal to carry them, they can be bought online.