mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
SF Patch #638825 logging module
Fix pychecker warnings, remove unused imports and rename root
This commit is contained in:
parent
5654cc215a
commit
d1cade0d1f
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ Copyright (C) 2001-2002 Vinay Sajip. All Rights Reserved.
|
||||||
To use, simply 'import logging' and log away!
|
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:
|
try:
|
||||||
import thread
|
import thread
|
||||||
|
@ -713,11 +713,11 @@ class Manager:
|
||||||
There is [under normal circumstances] just one Manager instance, which
|
There is [under normal circumstances] just one Manager instance, which
|
||||||
holds the hierarchy of loggers.
|
holds the hierarchy of loggers.
|
||||||
"""
|
"""
|
||||||
def __init__(self, root):
|
def __init__(self, rootnode):
|
||||||
"""
|
"""
|
||||||
Initialize the manager with the root node of the logger hierarchy.
|
Initialize the manager with the root node of the logger hierarchy.
|
||||||
"""
|
"""
|
||||||
self.root = root
|
self.root = rootnode
|
||||||
self.disable = 0
|
self.disable = 0
|
||||||
self.emittedNoHandlerWarning = 0
|
self.emittedNoHandlerWarning = 0
|
||||||
self.loggerDict = {}
|
self.loggerDict = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue