summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[ Kyle ] [ Hausmann ] <khausmann@squarespace.com>2019-01-07 09:29:20 -0500
committer[ Kyle ] [ Hausmann ] <kyle.hausmann@gmail.com>2019-01-07 11:44:07 -0500
commitb980edb6c3a79a37f311bc6199d7b183bc6eef99 (patch)
tree0193f1d5f5d9d1e3d114961beb458a85ecb19436
parente7193ead5ace1ccaeb4a33d185a42b50c9cbaef9 (diff)
downloadpytz-git-b980edb6c3a79a37f311bc6199d7b183bc6eef99.tar.gz
Add _all_timezones_lower_to_standard to gen_tzinfo
Adds a map from lower-cased timezone name to the standard-formatted timezone name. Signed-off-by: [ Kyle ] [ Hausmann ] <khausmann@squarespace.com>
-rw-r--r--gen_tzinfo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen_tzinfo.py b/gen_tzinfo.py
index 201a643..d06fa0e 100644
--- a/gen_tzinfo.py
+++ b/gen_tzinfo.py
@@ -129,6 +129,7 @@ def add_allzones(filename):
tz for tz in all_timezones if resource_exists(tz))
'''
print >> outf, 'all_timezones_set = LazySet(all_timezones)'
+ print >> outf, '_all_timezones_lower_to_standard = dict((tz.lower(), tz) for tz in all_timezones)'
print >> outf, 'common_timezones = \\'
pprint(cz, outf)