 In the north-western provinces (Bosnia and Herzegovina, Croatia, Slovenia and Vojvodina), executions were by hanging in an enclosed space with restricted public attendance.In the remainder of the country (Serbia, Kosovo, Montenegro and Macedonia), executions were by shooting and in public.When a single Penal Code was introduced for the whole country (1929), hanging remained the only legal mode of execution, with the exception of sentences passed by military courts, which were executed by shooting.