We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853cce9 commit ac019edCopy full SHA for ac019ed
pyflakes/checker.py
@@ -574,7 +574,6 @@ def __init__(self):
574
# Simplify: manage the special locals as globals
575
self.globals = self.alwaysUsed.copy()
576
self.returnValue = None # First non-empty return
577
- self.isGenerator = False # Detect a generator
578
579
def unused_assignments(self):
580
"""
@@ -1937,7 +1936,6 @@ def YIELD(self, node):
1937
1936
self.report(messages.YieldOutsideFunction, node)
1938
return
1939
1940
- self.scope.isGenerator = True
1941
self.handleNode(node.value, node)
1942
1943
AWAIT = YIELDFROM = YIELD
0 commit comments