From e2b70bcf7401477936fba99a8bf4a1f759ecc8a3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 18 Aug 2006 22:13:04 +0000 Subject: Get rid of dict.has_key(). Boy this has a lot of repercussions! Not all code has been fixed yet; this is just a checkpoint... The C API still has PyDict_HasKey() and _HasKeyString(); not sure if I want to change those just yet. --- Lib/rfc822.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/rfc822.py') diff --git a/Lib/rfc822.py b/Lib/rfc822.py index d6d5e47129..0ef0d974f2 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -428,10 +428,6 @@ class Message: self.dict[lowername] = default return default - def has_key(self, name): - """Determine whether a message contains the named header.""" - return name.lower() in self.dict - def __contains__(self, name): """Determine whether a message contains the named header.""" return name.lower() in self.dict -- cgit v1.2.1