Skip to content

Commit

Permalink
remove unused isGenerator (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Nov 4, 2022
1 parent 853cce9 commit ac019ed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyflakes/checker.py
Expand Up @@ -574,7 +574,6 @@ def __init__(self):
# Simplify: manage the special locals as globals
self.globals = self.alwaysUsed.copy()
self.returnValue = None # First non-empty return
self.isGenerator = False # Detect a generator

def unused_assignments(self):
"""
Expand Down Expand Up @@ -1937,7 +1936,6 @@ def YIELD(self, node):
self.report(messages.YieldOutsideFunction, node)
return

self.scope.isGenerator = True
self.handleNode(node.value, node)

AWAIT = YIELDFROM = YIELD
Expand Down

0 comments on commit ac019ed

Please sign in to comment.