summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-15 23:31:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-15 23:31:28 (GMT)
commitd1cade0d1f7aa00f3659f28cdb70ca5e751c3902 (patch)
tree66932cb2615d94d27d6bc017a064399ec7a25de6 /Lib
parent5654cc215ab6b0cf8841968c3a46aeea770555c9 (diff)
downloadcpython-d1cade0d1f7aa00f3659f28cdb70ca5e751c3902.zip
cpython-d1cade0d1f7aa00f3659f28cdb70ca5e751c3902.tar.gz
cpython-d1cade0d1f7aa00f3659f28cdb70ca5e751c3902.tar.bz2
SF Patch #638825 logging module
Fix pychecker warnings, remove unused imports and rename root
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 1288301..cb578c5 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -26,7 +26,7 @@ Copyright (C) 2001-2002 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
"""
-import sys, os, types, time, string, struct, cPickle, cStringIO
+import sys, os, types, time, string, cStringIO
try:
import thread
@@ -713,11 +713,11 @@ class Manager:
There is [under normal circumstances] just one Manager instance, which
holds the hierarchy of loggers.
"""
- def __init__(self, root):
+ def __init__(self, rootnode):
"""
Initialize the manager with the root node of the logger hierarchy.
"""
- self.root = root
+ self.root = rootnode
self.disable = 0
self.emittedNoHandlerWarning = 0
self.loggerDict = {}