From 3e16f3dd7f9219a19e5802b721b19fde93fc56a5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 14 Dec 2008 01:46:11 +0000 Subject: remove has_key usage --- Lib/logging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index bd1a49d..513d4dc 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 -- cgit v0.12