File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ def add_allzones(filename):
121
121
cz .append (zone )
122
122
cz .sort ()
123
123
124
- print ('all_timezones = \\ ' , file = outf )
124
+ print ('all_timezones_unchecked = \\ ' , file = outf )
125
125
pprint (sorted (allzones ()), outf )
126
126
print ('''all_timezones = LazyList(
127
- tz for tz in all_timezones if resource_exists(tz))
127
+ tz for tz in all_timezones_unchecked if resource_exists(tz))
128
128
''' , file = outf )
129
129
print ('all_timezones_set = LazySet(all_timezones)' , file = outf )
130
130
# Per lp:1835784 we can't afford to do this at import time
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def _case_insensitive_zone_lookup(zone):
202
202
"""case-insensitively matching timezone, else return zone unchanged"""
203
203
global _all_timezones_lower_to_standard
204
204
if _all_timezones_lower_to_standard is None :
205
- _all_timezones_lower_to_standard = dict ((tz .lower (), tz ) for tz in all_timezones ) # noqa
205
+ _all_timezones_lower_to_standard = dict ((tz .lower (), tz ) for tz in all_timezones_unchecked ) # noqa
206
206
return _all_timezones_lower_to_standard .get (zone .lower ()) or zone # noqa
207
207
208
208
You can’t perform that action at this time.
0 commit comments