Skip to content

Commit 0d71ba5

Browse files
author
benjamin.peterson
committed
remove has_key usage
git-svn-id: http://svn.python.org/projects/python/trunk@67748 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 17377e0 commit 0d71ba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/logging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def append(self, alogger):
846846
Add the specified logger as a child of this placeholder.
847847
"""
848848
#if alogger not in self.loggers:
849-
if not self.loggerMap.has_key(alogger):
849+
if alogger not in self.loggerMap:
850850
#self.loggers.append(alogger)
851851
self.loggerMap[alogger] = None
852852

0 commit comments

Comments
 (0)