mirror of https://github.com/python/cpython.git
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
|
return None
|
||||||
tzoffset = None
|
tzoffset = None
|
||||||
tz = tz.upper()
|
tz = tz.upper()
|
||||||
if _timezones.has_key(tz):
|
if tz in _timezones:
|
||||||
tzoffset = _timezones[tz]
|
tzoffset = _timezones[tz]
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue