Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_UserDict: TypeError: 'Leaf' object is not subscriptable #572

Open
jayvdb opened this issue Jul 19, 2020 · 0 comments
Open

fix_UserDict: TypeError: 'Leaf' object is not subscriptable #572

jayvdb opened this issue Jul 19, 2020 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented Jul 19, 2020

Futurizing https://github.com/weijia/iconizer

> futurize -wn -f libfuturize.fixes.fix_UserDict iconizer/msg_service/msg_def/cmd_msg_base.py
Traceback (most recent call last):
  File "/usr/bin/futurize", line 11, in <module>
    load_entry_point('future==0.18.2', 'console_scripts', 'futurize')()
  File "/usr/lib/python3.8/site-packages/libfuturize/main.py", line 312, in main
    rt.refactor(args, options.write, None,
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 686, in refactor
    return super(MultiprocessRefactoringTool, self).refactor(
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 282, in refactor
    self.refactor_file(dir_or_file, write, doctests_only)
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 727, in refactor_file
    return super(MultiprocessRefactoringTool, self).refactor_file(
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 335, in refactor_file
    tree = self.refactor_string(input, filename)
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 367, in refactor_string
    self.refactor_tree(tree, name)
  File "/usr/lib64/python3.8/lib2to3/refactor.py", line 441, in refactor_tree
    new = fixer.transform(node, results)
  File "/usr/lib/python3.8/site-packages/libfuturize/fixes/fix_UserDict.py", line 99, in transform
    bare_name = results["bare_with_attr"][0]
TypeError: 'Leaf' object is not subscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant