google / pasta

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

Undefined name: target --> node.target #90

Closed cclauss closed 3 years ago

cclauss commented 3 years ago

As discovered in the Travis CI pre-tests, target is an undefined name in this context which has the potential to raise NameError at runtime. This PR proposes to use node.target instead as is done elsewhere in this file.

soupytwist commented 3 years ago

I pushed the fix already! Thank you 6fb0a42