python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
432 stars 159 forks source link

Top-level Werkzeug imports are deprecated, removed in 1.0 #157

Closed davidism closed 4 years ago

davidism commented 4 years ago

Werkzeug is deprecating then removing most of the top-level attributes in favor of direct imports.

Instead of from werkzeug import ImmutableDict, it becomes from werkzeug.datastructures import ImmutableDict.

The docs have mentioned this for years, but the code only recently started showing deprecation warnings. It would be great to get this out as a point release, as Werkzeug 1.0 will be released within a month and will remove these deprecated imports.