Remove a dict.has_key() usage in email._parseaddr found while running -3.
This commit is contained in:
parent
1f571c6e60
commit
8161498817
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue