adamchainz / django-upgrade

Automatically upgrade your Django projects.
MIT License
1.01k stars 64 forks source link

Extend format_html() fixer to string constants #482

Closed adamchainz closed 3 weeks ago

adamchainz commented 2 months ago

For #477.

adamchainz commented 2 months ago

Started with the easy case, when there is an existing mark_safe import. I want to extend this to add the import if it’s missing, and the name mark_safe is not used anywhere in the file...

adamchainz commented 3 weeks ago

Giving up on this idea, best to audit such calls any way.