[Python-checkins] r54450 - sandbox/trunk/2to3/tests/test_fixers.py

collin.winter python-checkins at python.org
Mon Mar 19 23:13:09 CET 2007


Author: collin.winter
Date: Mon Mar 19 23:13:08 2007
New Revision: 54450
Modified:
 sandbox/trunk/2to3/tests/test_fixers.py
Log:
Replace the fixer's logging handlers, don't add to them.
Modified: sandbox/trunk/2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/tests/test_fixers.py	(original)
+++ sandbox/trunk/2to3/tests/test_fixers.py	Mon Mar 19 23:13:08 2007
@@ -30,7 +30,7 @@
 
 def start_tree(self, tree, filename):
 self.fixer.start_tree(tree, filename)
- self.fixer.logger.addHandler(self.handler)
+ self.fixer.logger.handlers[:] = [self.handler]
 
 class Options:
 def __init__(self, **kwargs):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /