We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c412073 commit 14d9199Copy full SHA for 14d9199
src/pytz/__init__.py
@@ -202,9 +202,7 @@ def _case_insensitive_zone_lookup(zone):
202
"""case-insensitively matching timezone, else return zone unchanged"""
203
global _all_timezones_lower_to_standard
204
if _all_timezones_lower_to_standard is None:
205
- global _all_timezones_unchecked
206
_all_timezones_lower_to_standard = dict((tz.lower(), tz) for tz in _all_timezones_unchecked) # noqa
207
- del _all_timezones_unchecked
208
return _all_timezones_lower_to_standard.get(zone.lower()) or zone # noqa
209
210
0 commit comments