Skip to content

Commit ffe8eb9

Browse files
committed
Remove pytz.gae refecence
pytz is available in standard Python 2.7 environment in GAE, see https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27
1 parent bfd004d commit ffe8eb9

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

flask_babel/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@
1717
from flask.ctx import has_request_context
1818
from babel import dates, numbers, support, Locale
1919
from werkzeug import ImmutableDict
20-
try:
21-
from pytz.gae import pytz
22-
except ImportError:
23-
from pytz import timezone, UTC
24-
else:
25-
timezone = pytz.timezone
26-
UTC = pytz.UTC
20+
from pytz import timezone, UTC
2721

2822
from flask_babel._compat import string_types
2923
from flask_babel.speaklater import LazyString

0 commit comments

Comments
 (0)