[Python-checkins] r65451 - python/trunk/Lib/email/_parseaddr.py
brett.cannon
python-checkins at python.org
Mon Aug 4 01:40:14 CEST 2008
Author: brett.cannon
Date: Mon Aug 4 01:40:13 2008
New Revision: 65451
Log:
Remove a dict.has_key() usage in email._parseaddr found while running -3.
Modified:
python/trunk/Lib/email/_parseaddr.py
Modified: python/trunk/Lib/email/_parseaddr.py
==============================================================================
--- python/trunk/Lib/email/_parseaddr.py (original)
+++ python/trunk/Lib/email/_parseaddr.py Mon Aug 4 01:40:13 2008
@@ -109,7 +109,7 @@
return None
tzoffset = None
tz = tz.upper()
- if _timezones.has_key(tz):
+ if tz in _timezones:
tzoffset = _timezones[tz]
else:
try:
More information about the Python-checkins
mailing list