Commit bb05f422 authored by Stefan Behnel's avatar Stefan Behnel

remove accidental left-over

parent 90e852c4
......@@ -7284,7 +7284,7 @@ class GILStatNode(NogilTryFinallyStatNode):
from .ParseTreeTransforms import YieldNodeCollector
collector = YieldNodeCollector()
collector.visitchildren(body)
if not collector.yields and not collector.awaits:
if not collector.yields:
return
if state == 'gil':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment