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