mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Remove a dict.has_key() usage in email._parseaddr found while running -3.
This commit is contained in:
parent
1f571c6e60
commit
8161498817
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue