cleanup NameFinder.scopes, fully use scope_names_generator.
This commit is contained in:
1 parent
ea370a083d
commit
c1ed3bf38a
2 files changed
+5
-12
No files matched your search
@@ -705,6 +705,10 @@ class Flow(Scope):
|
||||
self.next.parent = self.parent
|
||||
return next
|
||||
|
||||
def scope_names_generator(self, position=None):
|
||||
# For `with` and `for`.
|
||||
yield self, filter_after_position(self.get_defined_names(), position)
|
||||
|
||||
|
||||
class ForFlow(Flow):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user