FILE - In this file photo taken on April 2, 2017, women watch people riding boats on the Persian Gulf Martyrs lake during the ancient festival of Sizdeh Bedar, an annual public picnic day on the 13th day of the Iranian new year, west of Tehran, Iran. Police in Iran's capital say they will no longer arrest women for failing to observe the Islamic dress code imposed since the 1979 revolution. (AP Photo/Ebrahim Noroozi, File)

FILE - In this file photo taken on April 2, 2017, women watch people riding boats on the Persian Gulf Martyrs lake during the ancient festival of Sizdeh Bedar, an annual public picnic day on the 13th day of the Iranian new year, west of Tehran, Iran. Police in Iran's capital say they will no longer arrest women for failing to observe the Islamic dress code imposed since the 1979 revolution. (AP Photo/Ebrahim Noroozi, File)

TEHRAN, Iran (AP) — Police in Iran’s capital said Thursday they will no longer arrest women for failing to observe the Islamic dress code in place since the 1979 revolution.

The announcement signaled an easing of punishments for violating the country’s conservative dress code, as called for by the young and reform-minded Iranians who helped re-elect President Hassan Rouhani, a relative moderate, earlier this year.

But hard-liners opposed to easing such rules still dominate Iran’s security forces and judiciary, so it was unclear whether the change would be fully implemented.

ADVERTISEMENT

“Those who do not observe the Islamic dress code will no longer be taken to detention centers, nor will judicial cases be filed against them.” Tehran police chief Gen. Hossein Rahimi was quoted as saying by the reformist daily Sharq.

The semi-official Tasnim news agency said violators will instead be made to attend classes given by police. It said repeat offenders could still be subject to legal action, and the dress code remains in place outside the capital.

For nearly 40 years, women in Iran have been forced to cover their hair and wear long, loose garments. Younger and more liberal-minded women have long pushed the boundaries of the official dress code, wearing loose headscarves that don’t fully cover their hair and painting their nails, drawing the ire of conservatives.

Iran’s morality police— similar to Saudi Arabia’s religious police— typically detain violators and escort them to a police van. Their families are then called to bring the detainee a change of clothes. The violator is then required to sign a form that they will not commit the offense again.

Men can also be stopped by the police if they are seen wearing shorts or going shirtless.

Last year, police in Tehran announced plans to deploy 7,000 male and female officers for a new plainclothes division — the largest such undercover assignment in memory - to monitor public morality and enforce the dress code.

___

Associated Press writer Aya Batrawy in Dubai, United Arab Emirates contributed to this report.