summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 03:53:23 +0000
committerGuido van Rossum <guido@python.org>2006-08-24 03:53:23 +0000
commit76ea86827bca32c5044bbe46e76b2c0a73623486 (patch)
treecb62f554b513c01722e06f172490587618b40879 /Lib/logging
parent795dc76ce3e471a503df313633cbf833e0f2483e (diff)
downloadcpython-76ea86827bca32c5044bbe46e76b2c0a73623486.tar.gz
Killed the <> operator. You must now use !=.
Opportunistically also fixed one or two places where '<> None' should be 'is not None' and where 'type(x) <> y' should be 'not isinstance(x, y)'.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index d5681c8a63..953afe9ebe 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -912,7 +912,8 @@ class Manager:
"""
#for c in ph.loggers:
for c in ph.loggerMap.keys():
- if string.find(c.parent.name, alogger.name) <> 0:
+ # XXX Is the following correct? Shouldn't it be >= 0?
+ if string.find(c.parent.name, alogger.name) != 0:
alogger.parent = c.parent
c.parent = alogger