diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-13 22:15:07 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-13 22:15:07 (GMT) |
commit | bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc (patch) | |
tree | 33c3219222824ae40539dc5a6db464fb9a9544c6 /Lib | |
parent | 07b353716cb10a057eda7fb171b25dce6e14e1a2 (diff) | |
download | cpython-bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc.zip cpython-bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc.tar.gz cpython-bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc.tar.bz2 |
Closes #12536: Unused logger removed from lib2to3.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib2to3/fixer_base.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/lib2to3/fixer_base.py b/Lib/lib2to3/fixer_base.py index afc0467..b176056 100644 --- a/Lib/lib2to3/fixer_base.py +++ b/Lib/lib2to3/fixer_base.py @@ -27,7 +27,6 @@ class BaseFix(object): pattern_tree = None # Tree representation of the pattern options = None # Options object passed to initializer filename = None # The filename (set by set_filename) - logger = None # A logger (set by set_filename) numbers = itertools.count(1) # For new_name() used_names = set() # A set of all used NAMEs order = "post" # Does the fixer prefer pre- or post-order traversal @@ -70,12 +69,11 @@ class BaseFix(object): with_tree=True) def set_filename(self, filename): - """Set the filename, and a logger derived from it. + """Set the filename. The main refactoring tool should call this. """ self.filename = filename - self.logger = logging.getLogger(filename) def match(self, node): """Returns match for a given parse tree node. |