Files
python-uncompyle6/test/simple_source/stmts/02_while1else.py
rocky c03cdf1a49 Last 2.6 while1 bug...
before all of 2.6.9 stdlib parses without error.
2018-03-06 18:52:27 -05:00

22 lines
515 B
Python

# From Python-3.5.2/Lib/multiprocessing/connection.py
def PipeClient(address):
while 1:
z = 2
else:
raise
return
# From 2.6.9 sre.py
# Bug was parsing inner while1. Our massaging adds a COME_FROM
# possibly in the wrong place. When control flow is
# redone possibly all of this mess will disappear.
def _parse(source, state, this, group, char):
while 1:
if this:
while 1:
raise RuntimeError
else:
raise IndexError
return