[Python-checkins] r73966 - sandbox/trunk/2to3/lib2to3/refactor.py
benjamin.peterson
python-checkins at python.org
Sun Jul 12 00:33:35 CEST 2009
Author: benjamin.peterson
Date: Sun Jul 12 00:33:35 2009
New Revision: 73966
Log:
revert unintended change in 73965
Modified:
sandbox/trunk/2to3/lib2to3/refactor.py
Modified: sandbox/trunk/2to3/lib2to3/refactor.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/refactor.py (original)
+++ sandbox/trunk/2to3/lib2to3/refactor.py Sun Jul 12 00:33:35 2009
@@ -343,7 +343,8 @@
results = fixer.match(node)
if results:
new = fixer.transform(node, results)
- if new is not None:
+ if new is not None and (new != node or
+ unicode(new) != unicode(node)):
node.replace(new)
node = new
More information about the Python-checkins
mailing list