summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniemeyer <>2007-08-07 20:42:31 +0000
committerniemeyer <>2007-08-07 20:42:31 +0000
commit2702259f864e6ecf787b47cdfd0e7a220f4f76a6 (patch)
tree2046b56c5dad7ec0b6448cbadeb3553b7ce28b76
parent75b11fb8ed55f9449c80802fcde9273baf7a35eb (diff)
downloaddateutil-2702259f864e6ecf787b47cdfd0e7a220f4f76a6.tar.gz
Initialize tzid and comps in tz.py, to prevent the code from ever
raising a NameError (even with broken files). Johan Dahlin suggested the fix after a pyflakes run.
-rw-r--r--dateutil/tz.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dateutil/tz.py b/dateutil/tz.py
index 5d5a089..208a7e7 100644
--- a/dateutil/tz.py
+++ b/dateutil/tz.py
@@ -753,6 +753,8 @@ class tzical:
else:
i += 1
+ tzid = None
+ comps = []
invtz = False
comptype = None
for line in lines: