summaryrefslogtreecommitdiff
path: root/gen_tzinfo.py
diff options
context:
space:
mode:
authorStuart Bishop <stuart.bishop@canonical.com>2005-05-13 15:50:35 +0000
committerStuart Bishop <stuart.bishop@canonical.com>2005-05-13 15:50:35 +0000
commitb8e5d0429906ec8265664c7ae1ed47aaef68b5c6 (patch)
tree144dc16c2cb1f8c2d1338b2b18166b860779d8d2 /gen_tzinfo.py
parentcb2a903bba4062b28c15fa498a804dd805554a33 (diff)
downloadpytz-b8e5d0429906ec8265664c7ae1ed47aaef68b5c6.tar.gz
Fix documentation tester
Diffstat (limited to 'gen_tzinfo.py')
-rw-r--r--gen_tzinfo.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gen_tzinfo.py b/gen_tzinfo.py
index 4c72830..40f1f7c 100644
--- a/gen_tzinfo.py
+++ b/gen_tzinfo.py
@@ -78,6 +78,15 @@ def dupe_src(destdir):
def gen_tzinfo(destdir, zone):
''' Create a .py file for the given timezone '''
+
+ # UTC migrated to pytz/__init__.py for minimum sized pickles
+ if zone == 'UTC':
+ outf = open(os.path.join(destdir, 'UTC.py'), 'w')
+ print >> outf, "'''tzinfo timezone information for UTC.'''"
+ print >> outf, "from pytz import UTC"
+ outf.close()
+ return
+
filename = os.path.join(zoneinfo, zone)
tzfile = TZFile(filename)
zone = pytz._munge_zone(zone)