You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
14 lines
352 B
Python
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
|