Skip to content

Commit

Permalink
Merge pull request #609 from edreamleo/ekr-pyflakes-nit1
Browse files Browse the repository at this point in the history
PR: pyflakes nit1: redefinition of unused '_follow'
  • Loading branch information
lieryan committed Dec 16, 2022
2 parents da95587 + 9a30e9b commit 750bdf9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rope/base/oi/soa.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def _follow(pyfunction):
pycore, pyfunction, return_true, return_false, new_followed_calls
)

if not followed_calls:
_follow = None
visitor = SOAVisitor(pycore, pydefined, _follow)
visitor = SOAVisitor(pycore, pydefined, _follow if followed_calls else None)
for child in rope.base.ast.iter_child_nodes(pydefined.get_ast()):
visitor.visit(child)

Expand Down

0 comments on commit 750bdf9

Please sign in to comment.