From: Benjamin Peterson Date: Sun, 14 Dec 2008 01:46:11 +0000 (+0000) Subject: remove has_key usage X-Git-Tag: v2.7a1~2547 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e16f3dd7f9219a19e5802b721b19fde93fc56a5;p=thirdparty%2FPython%2Fcpython.git remove has_key usage --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index bd1a49d62648..513d4dce41f6 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -846,7 +846,7 @@ class PlaceHolder: Add the specified logger as a child of this placeholder. """ #if alogger not in self.loggers: - if not self.loggerMap.has_key(alogger): + if alogger not in self.loggerMap: #self.loggers.append(alogger) self.loggerMap[alogger] = None