You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from flask import Markup and flask.Markup both don’t work. This is merely supposed to be deprecated, not broken, in Flask 2.3.0.
Example A:
importflaskprint(flask.Markup('hi'))
Traceback (most recent call last):
File "/tmp/flask230/1.py", line 3, in <module>
print(flask.Markup('hi'))
File "/tmp/flask230/venv/lib/python3.10/site-packages/flask/__init__.py", line 102, in __getattr__
raise AttributeError(name)
AttributeError: Markup
Example B:
fromflaskimportMarkupprint(Markup('hi'))
Traceback (most recent call last):
File "/tmp/flask230/2.py", line 1, in <module>
from flask import Markup
ImportError: cannot import name 'Markup' from 'flask' (/tmp/flask230/venv/lib/python3.10/site-packages/flask/__init__.py)
Environment:
Python version: 3.10.10
Flask version: 2.3.0
The text was updated successfully, but these errors were encountered:
from flask import Markup
andflask.Markup
both don’t work. This is merely supposed to be deprecated, not broken, in Flask 2.3.0.Example A:
Example B:
Environment:
The text was updated successfully, but these errors were encountered: