diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-13 23:15:07 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-13 23:15:07 +0100 |
commit | bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc (patch) | |
tree | 33c3219222824ae40539dc5a6db464fb9a9544c6 | |
parent | 07b353716cb10a057eda7fb171b25dce6e14e1a2 (diff) | |
download | cpython-git-bf9c021ddd12eb9bd7c6ce450a1c401e348c09fc.tar.gz |
Closes #12536: Unused logger removed from lib2to3.
-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 afc0467000..b176056199 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. |