Files
python-uncompyle6/test/simple_source/bug36/05_while_and_if.py
2018-03-19 06:01:39 -04:00

14 lines
352 B
Python

# From Python 3.6 getopt.py
# Bug showing that "while" can have several "COME_FROMS" before loop end
# NOTE: uncompyle6 still gets the "if"s wrong.
def getopt(args):
while args and args[0] and args[0] != '-':
if args[0] == '--':
break
if args[0]:
opts = 5
else:
opts = 6
return opts