[Python-checkins] r77100 - sandbox/trunk/2to3/lib2to3/fixer_util.py

benjamin.peterson python-checkins at python.org
Mon Dec 28 23:53:21 CET 2009


Author: benjamin.peterson
Date: Mon Dec 28 23:53:21 2009
New Revision: 77100

Log:
revert unintended changes

Modified:
   sandbox/trunk/2to3/lib2to3/fixer_util.py

Modified: sandbox/trunk/2to3/lib2to3/fixer_util.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixer_util.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixer_util.py	Mon Dec 28 23:53:21 2009
@@ -291,6 +291,8 @@
     if does_tree_import(package, name, root):
         return
 
+    # 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):


More information about the Python-checkins mailing list