diff options
author | Stuart Bishop <stuart.bishop@canonical.com> | 2005-05-13 15:50:35 +0000 |
---|---|---|
committer | Stuart Bishop <stuart.bishop@canonical.com> | 2005-05-13 15:50:35 +0000 |
commit | b8e5d0429906ec8265664c7ae1ed47aaef68b5c6 (patch) | |
tree | 144dc16c2cb1f8c2d1338b2b18166b860779d8d2 /gen_tzinfo.py | |
parent | cb2a903bba4062b28c15fa498a804dd805554a33 (diff) | |
download | pytz-b8e5d0429906ec8265664c7ae1ed47aaef68b5c6.tar.gz |
Fix documentation tester
Diffstat (limited to 'gen_tzinfo.py')
-rw-r--r-- | gen_tzinfo.py | 9 |
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) |