Skip to content

Commit 6ca29cd

Browse files
committed
Merge branch 'jkittner-flask-2-3-deprecation'
2 parents dad9165 + 346a45a commit 6ca29cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_babel/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
from babel.support import Translations, NullTranslations
1818
from flask import current_app, g
19-
from flask.helpers import locked_cached_property
2019
from babel import dates, numbers, support, Locale
2120
from pytz import timezone, UTC
2221
from werkzeug.datastructures import ImmutableDict
22+
from werkzeug.utils import cached_property
2323

2424
from flask_babel.speaklater import LazyString
2525

@@ -221,7 +221,7 @@ def domain(self) -> str:
221221
"""
222222
return get_babel().default_domain
223223

224-
@locked_cached_property
224+
@cached_property
225225
def domain_instance(self):
226226
"""The message domain for the translations.
227227
"""

0 commit comments

Comments
 (0)