Commits

Benjamin Peterson committed bd94f96

avoid expensive checks and assume the node did change

Comments (0)

Files changed (1)

lib2to3/refactor.py

                 results = fixer.match(node)
                 if results:
                     new = fixer.transform(node, results)
-                    if new is not None and (new != node or
-                                            unicode(new) != unicode(node)):
+                    if new is not None:
                         node.replace(new)
                         node = new