Skip to content

Commit 14d9199

Browse files
committed
Revert 8656870 to fix initialization thread safety
Fixes #95
1 parent c412073 commit 14d9199

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pytz/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ def _case_insensitive_zone_lookup(zone):
202202
"""case-insensitively matching timezone, else return zone unchanged"""
203203
global _all_timezones_lower_to_standard
204204
if _all_timezones_lower_to_standard is None:
205-
global _all_timezones_unchecked
206205
_all_timezones_lower_to_standard = dict((tz.lower(), tz) for tz in _all_timezones_unchecked) # noqa
207-
del _all_timezones_unchecked
208206
return _all_timezones_lower_to_standard.get(zone.lower()) or zone # noqa
209207

210208

0 commit comments

Comments
 (0)