From c70132da77d930bd07a66d81b0f6a75b7d100de5 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. git-svn-id: http://svn.python.org/projects/python/trunk@65451 6015fed2-1504-0410-9fe1-9d1591cc4771 --- 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 791d8928eb..81913a3824 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: -- 2.11.4.GIT