Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1cade0

Browse files
committed
SF Patch #638825 logging module
Fix pychecker warnings, remove unused imports and rename root
1 parent 5654cc2 commit d1cade0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/logging/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
To use, simply 'import logging' and log away!
2727
"""
2828

29-
import sys, os, types, time, string, struct, cPickle, cStringIO
29+
import sys, os, types, time, string, cStringIO
3030

3131
try:
3232
import thread
@@ -713,11 +713,11 @@ class Manager:
713713
There is [under normal circumstances] just one Manager instance, which
714714
holds the hierarchy of loggers.
715715
"""
716-
def __init__(self, root):
716+
def __init__(self, rootnode):
717717
"""
718718
Initialize the manager with the root node of the logger hierarchy.
719719
"""
720-
self.root = root
720+
self.root = rootnode
721721
self.disable = 0
722722
self.emittedNoHandlerWarning = 0
723723
self.loggerDict = {}

0 commit comments

Comments
 (0)