summaryrefslogtreecommitdiffstats
path: root/Lib/email/_parseaddr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-19 15:28:37 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-19 15:28:37 (GMT)
commit49061f7b8f8c0e5ca123a545447781e10a3b77d9 (patch)
tree5baed2fb8165bbff61128f80940ebe2242742017 /Lib/email/_parseaddr.py
parent1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b (diff)
downloadcpython-49061f7b8f8c0e5ca123a545447781e10a3b77d9.zip
cpython-49061f7b8f8c0e5ca123a545447781e10a3b77d9.tar.gz
cpython-49061f7b8f8c0e5ca123a545447781e10a3b77d9.tar.bz2
Stomp out more hsa_key() calls.
Diffstat (limited to 'Lib/email/_parseaddr.py')
-rw-r--r--Lib/email/_parseaddr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py
index a08c43e..8047df2 100644
--- a/Lib/email/_parseaddr.py
+++ b/Lib/email/_parseaddr.py
@@ -109,7 +109,7 @@ def parsedate_tz(data):
return None
tzoffset = None
tz = tz.upper()
- if _timezones.has_key(tz):
+ if tz in _timezones:
tzoffset = _timezones[tz]
else:
try: