You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get a package (PEAK-Rules) that depends on http://svn.eby-sarna.com/DecoratorTools/ working on Python 3. On test_decorators.py, the stage 2 script crashes with the following traceback:
RefactoringTool: Refactoring ./DecoratorTools/test_decorators.py
Traceback (most recent call last):
File "/usr/local/bin/futurize", line 9, in
load_entry_point('future==0.14.3', 'console_scripts', 'futurize')()
File "/usr/local/lib/python2.7/dist-packages/libfuturize/main.py", line 293, 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/lib/python2.7/lib2to3/refactor.py", line 386, in refactor_string
self.refactor_tree(tree, name)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 460, in refactor_tree
new = fixer.transform(node, results)
File "/usr/local/lib/python2.7/dist-packages/libfuturize/fixes/fix_metaclass.py", line 247, in transform
pass_leaf.prefix = orig_meta_prefix
NameError: global name 'orig_meta_prefix' is not defined
The text was updated successfully, but these errors were encountered:
I'm trying to get a package (PEAK-Rules) that depends on http://svn.eby-sarna.com/DecoratorTools/ working on Python 3. On test_decorators.py, the stage 2 script crashes with the following traceback:
RefactoringTool: Refactoring ./DecoratorTools/test_decorators.py
Traceback (most recent call last):
File "/usr/local/bin/futurize", line 9, in
load_entry_point('future==0.14.3', 'console_scripts', 'futurize')()
File "/usr/local/lib/python2.7/dist-packages/libfuturize/main.py", line 293, 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/lib/python2.7/lib2to3/refactor.py", line 386, in refactor_string
self.refactor_tree(tree, name)
File "/usr/lib/python2.7/lib2to3/refactor.py", line 460, in refactor_tree
new = fixer.transform(node, results)
File "/usr/local/lib/python2.7/dist-packages/libfuturize/fixes/fix_metaclass.py", line 247, in transform
pass_leaf.prefix = orig_meta_prefix
NameError: global name 'orig_meta_prefix' is not defined
The text was updated successfully, but these errors were encountered: