Former Libertines frontman Pete Doherty has been warned he could face a jail sentence after admitting possession of a four-inch flick knife.
Pete Doherty parted company with The Libertines earlier this year
Magistrates heard how the singer was found with the weapon by police in the early hours of 18 June.
Doherty, 25, from Stepney, east London, attended Bow Street Magistrates court in London on Tuesday.
The singer was ordered to return to court on 1 September for sentencing by magistrate Penny Sinclair.
Doherty pleaded guilty to a charge of possessing an offensive weapon.
Prosecutor Taiwo Adesina told the court the knife was found in his jeans pocket.
She added: "At interview he stated he had it in his possession for a friend
and he forgot it was in his pocket."
Frank Brazell, defending, told the court Doherty had bought the knife legally for a friend while on holiday and had yet to give it to him.
He added there was no suggestion the knife was ever going to be used as a
weapon, and the tip was broken off so it was not as sharp.
Mr Brazell added: "He did not brandish the knife in any way, shape or form, and did not threaten to do so.
"He is not someone with a history of violence. Those who know him well say he
is quite the opposite, a peaceful man who pretty much abhors violence.
"He displayed nothing but co-operation with the police at the roadside or at the
Ms Sinclair ordered a pre-sentence report to be prepared on the singer before his next appearance.
She said: "This court is not prepared to tie the hands of the next bench. All sentencing options are to be considered. Custody cannot be ruled out."
Speaking outside the court, Doherty said: "If the law was to send me to prison it wouldn't be able to look itself in the eye."