1. python_mirrors
  2. 2to3


Benjamin Peterson  committed f6e39ff

revert unintended changes

  • Participants
  • Parent commits 627fb41
  • Branches default

Comments (0)

Files changed (1)

File lib2to3/fixer_util.py

View file
     if does_tree_import(package, name, root):
+    # figure out where to insert the new import.  First try to find
+    # the first import and then skip to the last one.
     insert_pos = offset = 0
     for idx, node in enumerate(root.children):
         if not is_import_stmt(node):