RefactoringTool: Refactored errbot/core_plugins/acls.py
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-vGoUiK/errbot/setup.py", line 109, in <module>
convert_to_python2()
File "./errbot/py2conv.py", line 49, in convert_to_python2
files_to_convert = list(walk_lib3to2_input_sources())
File "/usr/local/lib/python2.7/dist-packages/lib3to2/main.py", line 167, in main
options.processes)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 706, in refactor
items, write, doctests_only)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 301, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 747, in refactor_file
*args, **kwargs)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 354, in refactor_file
tree = self.refactor_string(input, filename)
File "/usr/local/lib/python2.7/dist-packages/lib3to2/main.py", line 45, in refactor_string
self.refactor_tree(tree, name)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 426, in refactor_tree
self.traverse_by(self.bmi_post_order_heads, tree.post_order())
File "/usr/lib/python2.7/lib2to3/refactor.py", line 502, in traverse_by
new = fixer.transform(node, results)
File "/usr/local/lib/python2.7/dist-packages/lib3to2/fixes/fix_absimport.py", line 27, in transform
future_import('absolute_import', node)
File "/usr/local/lib/python2.7/dist-packages/lib3to2/fixer_util.py", line 172, in future_import
root = find_root(node)
File "/usr/lib/python2.7/lib2to3/fixer_util.py", line 277, in find_root
assert node.parent, "Tree is insane! root found before "\
AssertionError: Tree is insane! root found before file_input node was found.