From 81614988176cc79b74c2dc9dbc38cd56856a08e7 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 3 Aug 2008 23:40:13 +0000 Subject: [PATCH] Remove a dict.has_key() usage in email._parseaddr found while running -3. --- Lib/email/_parseaddr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index 791d8928eb3..81913a38246 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: