Turkey’s president has refused to bring the country’s anti-terror laws in line with EU standards, claiming that Europe lecturing Ankara is a “black comedy”, as it offers safe havens for terrorists groups’ political wings and refuses to fix its own flawed laws.

“European countries continue to be safe havens for the political extensions of terrorist groups. When this is the case, it's a piece of black comedy that the EU criticizes our country over the definition of terrorism,” Turkish President Recep Tayyip Erdogan said in Ankara on Tuesday.

Turkey continues to hold the EU hostage over the migrant crisis, as the country ultimately aims to join the bloc. Meanwhile, it has been pursuing visa-free travel negotiations. Last week Brussels urged Ankara to amend its terrorism laws in line with EU standards. Erdogan refused.

In his speech Tuesday he reiterated his country’s stance, claiming that it is Europe which should be amending its laws.

“First of all, we expect EU countries to fix their own laws that support terrorism,” Erdogan said, calling on EU to first answer why it allowed Kurdistan Workers' Party (PKK) activists to set up tents in front of the European Parliament in March.

The present anti-terrorism laws allow Turkey to press terrorism charges against critical journalists and academics. Erdogan stressed that even without visa liberalization, Turkey would take its own path.

“There is no need to make big deal of it,” he said, adding that Turkey needs to “stand upright” and not “lie down”.

The Turkish president also took his time to remind Europeans that Turkey is vociferously fighting the migrant crisis. According Erdogan his country has spent way more on refugees than the EU-Turkey deal envisioned, when EU leaders agreed on a €6 billion ($6.8 billion) aid package to help Turkey care for millions of refugees hosted in the country.