diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:40:13 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-03 23:40:13 (GMT) |
commit | 81614988176cc79b74c2dc9dbc38cd56856a08e7 (patch) | |
tree | 65ce930c5c9206d05fe17d970110d114288d99ea /Lib/email | |
parent | 1f571c6e602e7dc35d18cede0f70d34fd38e21ae (diff) | |
download | cpython-81614988176cc79b74c2dc9dbc38cd56856a08e7.zip cpython-81614988176cc79b74c2dc9dbc38cd56856a08e7.tar.gz cpython-81614988176cc79b74c2dc9dbc38cd56856a08e7.tar.bz2 |
Remove a dict.has_key() usage in email._parseaddr found while running -3.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_parseaddr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index 791d892..81913a3 100644 --- a/Lib/email/_parseaddr.py +++ b/Lib/email/_parseaddr.py @@ -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: |