commit | 81614988176cc79b74c2dc9dbc38cd56856a08e7 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sun Aug 03 23:40:13 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sun Aug 03 23:40:13 2008 +0000 |
tree | 65ce930c5c9206d05fe17d970110d114288d99ea | |
parent | 1f571c6e602e7dc35d18cede0f70d34fd38e21ae [diff] |
Remove a dict.has_key() usage in email._parseaddr found while running -3.
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 @@ return None tzoffset = None tz = tz.upper() - if _timezones.has_key(tz): + if tz in _timezones: tzoffset = _timezones[tz] else: try: