Skip to content

deprecate markupsafe exports#4996

Merged
davidism merged 1 commit intomainfrom
deprecate-markupsafe-export
Feb 23, 2023
Merged

deprecate markupsafe exports#4996
davidism merged 1 commit intomainfrom
deprecate-markupsafe-export

Conversation

@davidism
Copy link
Copy Markdown
Member

Importing escape and Markup from flask is deprecated. Import directly from markupsafe instead.

We've been deprecating re-exported names from other libraries over time, not sure why I missed these before. May have been that we couldn't rely on module __getattr__ before for better warnings.

@davidism davidism added this to the 2.3.0 milestone Feb 23, 2023
@davidism davidism merged commit 704b689 into main Feb 23, 2023
@davidism davidism deleted the deprecate-markupsafe-export branch February 23, 2023 16:59
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant