You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
scanner3.py: bug in 3.x detecting "if" structure Make scanner2.py look more like scanner3.py verify.py: add weak-verify which tests Pytyon syntax, but not code
12 lines
226 B
Python
12 lines
226 B
Python
# From python 3.4 difflib
|
|
# Bug in 3.x is combining bestsize +=1 with while condition
|
|
bestsize = 5
|
|
b = [2]
|
|
def isbjunk(x):
|
|
return False
|
|
|
|
while 1 < bestsize and \
|
|
not isbjunk(b[0]) and \
|
|
b[0]:
|
|
bestsize += 1
|