google / pasta

Library to refactor python code through AST manipulation.
Apache License 2.0
341 stars 40 forks source link

Undefined name 'v' in pasta/base/codegen.py #74

Closed cclauss closed 5 years ago

cclauss commented 5 years ago

flake8 testing of https://github.com/google/pasta on Python 3.7.1

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./pasta/base/codegen.py:75:23: F821 undefined name 'v'
        if isinstance(v, ast.Str):
                      ^
./pasta/base/codegen.py:76:24: F821 undefined name 'v'
          parts.append(v.s)
                       ^
2     F821 undefined name 'v'
2
soupytwist commented 5 years ago

Thank you. Looks like this needs test coverage as well, will add that.