Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore and deprecate json_available #3292

Merged
merged 1 commit into from Jul 8, 2019
Merged

Conversation

davidism
Copy link
Member

@davidism davidism commented Jul 8, 2019

flask.json_available was removed because it was marked deprecated in the code and doesn't do anything. flask.json is always available, and libaries that weren't sure about that should have used try/except ImportError while it was relevant. However, since a few dormant but popular extensions use it, it's added back in for now.

Anything doing if json_available or if json_available == True, such as Flask-Testing and Flask-DebugToolbar, will show a DeprecationWarning. is can't be overridden, so that won't show a warning, but I don't think things that were using this flag did that.

I've marked it for removal in 2.0.0, which will be a pretty big change anyway. Please reach out to extensions you use if you see this warning and offer to help maintain it if it's an extension you want to continue using as Flask moves forward.

closes #3288

@davidism davidism added this to the 1.1.1 milestone Jul 8, 2019
@davidism davidism changed the base branch from master to 1.1.x July 8, 2019 17:31
@davidism davidism merged commit 1a6696d into 1.1.x Jul 8, 2019
@davidism davidism deleted the deprecate-json-available branch July 8, 2019 17:37
@frankcash
Copy link

when should one be able to pull this change?

@aadibajpai
Copy link

Makes sense, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
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.

None yet

3 participants