You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
DRY parse{2,3} code
Add test for last bug.
This commit is contained in:
BIN
test/bytecode_3.2/11_if_while_bug.pyc
Normal file
BIN
test/bytecode_3.2/11_if_while_bug.pyc
Normal file
Binary file not shown.
9
test/simple_source/looping/11_if_while_bug.py
Normal file
9
test/simple_source/looping/11_if_while_bug.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Python < 3.5 bug in not getting jumps with
|
||||
# end of loop inside the if
|
||||
def _splitext(p, sep, altsep, extsep):
|
||||
if p > sep:
|
||||
while sep < p:
|
||||
if p[sep:sep+1] != extsep:
|
||||
return p[:sep], p[sep:]
|
||||
altsep += 1
|
||||
return p, p[:0]
|
Reference in New Issue
Block a user