By The Associated Press

A three-judge panel of Kenya's High Court has upheld sections of the country's penal code that criminalize same-sex relations.

The judges' unanimous ruling on Friday disappointed Kenya's vibrant gay community, as many had hoped the court would make history by scrapping the colonial-era laws.

Activists argue that the laws criminalizing consensual same-sex relations between adults are in breach of the constitution because they deny basic rights.

The laws prescribe up to 14 years in prison for people convicted of homosexual acts.

FOLLOW NBC OUT ON TWITTER, FACEBOOK & INSTAGRAM.