 In Turkey, homosexuality has been legal since 1858.During the French Revolution, the French National Assembly rewrote the criminal code in 1791, omitting all reference to homosexuality.During the Napoleonic wars, homosexuality was decriminalised in territories coming under French control, such as the Netherlands and many of the pre-unification German states; however, in Germany this ended with the unification of the country under the Prussian Kaiser, as Prussia had long punished homosexuality harshly.