Skip to content

Commit ac019ed

Browse files
authored
remove unused isGenerator (#737)
1 parent 853cce9 commit ac019ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pyflakes/checker.py

-2
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ def __init__(self):
574574
# Simplify: manage the special locals as globals
575575
self.globals = self.alwaysUsed.copy()
576576
self.returnValue = None # First non-empty return
577-
self.isGenerator = False # Detect a generator
578577

579578
def unused_assignments(self):
580579
"""
@@ -1937,7 +1936,6 @@ def YIELD(self, node):
19371936
self.report(messages.YieldOutsideFunction, node)
19381937
return
19391938

1940-
self.scope.isGenerator = True
19411939
self.handleNode(node.value, node)
19421940

19431941
AWAIT = YIELDFROM = YIELD

0 commit comments

Comments
 (0)