You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
18 lines
517 B
Python
18 lines
517 B
Python
# From genericpath
|
|
# Problem on Python 3.4
|
|
# end of if can come from both finishing loop
|
|
# and not taking the if.
|
|
|
|
# whilestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK \e__come_froms
|
|
# _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD \e__come_from
|
|
# ifstmt ::= testexpr _ifstmts_jump
|
|
# _come_froms ::= _come_froms COME_FROM
|
|
# _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_froms
|
|
|
|
def splitext(p, sep, altsep, extsep):
|
|
if altsep > extsep:
|
|
while sep < altsep:
|
|
sep += 1
|
|
|
|
return p
|