[Python-checkins] cpython: Closes #12536: Unused logger removed from lib2to3.

vinay.sajip python-checkins at python.org
Thu Jul 14 00:15:16 CEST 2011


http://hg.python.org/cpython/rev/dd004e85e299
changeset:   71319:dd004e85e299
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Wed Jul 13 23:15:07 2011 +0100
summary:
  Closes #12536: Unused logger removed from lib2to3.

files:
  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
--- a/Lib/lib2to3/fixer_base.py
+++ b/Lib/lib2to3/fixer_base.py
@@ -27,7 +27,6 @@
     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 @@
                                                                  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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list