Kaydet (Commit) 81614988 authored tarafından Brett Cannon's avatar Brett Cannon

Remove a dict.has_key() usage in email._parseaddr found while running -3.

üst 1f571c6e
...@@ -109,7 +109,7 @@ def parsedate_tz(data): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment