fix import of ImmutableDict from werkzeug (closes: #965050)
Johannes 'josch' Schauer
3 years ago
0 | Description: The import 'werkzeug.ImmutableDict' is deprecated and will be | |
1 | removed in Werkzeug 1.0. Use 'from werkzeug.datastructures import | |
2 | ImmutableDict' instead. | |
3 | Bug-Debian: http://bugs.debian.org965050 | |
4 | Author: Johannes 'josch' Schauer <josch@debian.org> | |
5 | ||
6 | --- a/flask_babel/__init__.py | |
7 | +++ b/flask_babel/__init__.py | |
8 | @@ -16,7 +16,7 @@ from contextlib import contextmanager | |
9 | from flask import current_app, request | |
10 | from flask.ctx import has_request_context | |
11 | from babel import dates, numbers, support, Locale | |
12 | -from werkzeug import ImmutableDict | |
13 | +from werkzeug.datastructures import ImmutableDict | |
14 | try: | |
15 | from pytz.gae import pytz | |
16 | except ImportError: |