You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
12 lines
329 B
Python
12 lines
329 B
Python
# Tests:
|
|
|
|
# ret_expr_or_cond ::= ret_expr
|
|
# ret_cond ::= expr POP_JUMP_IF_FALSE expr RETURN_END_IF ret_expr_or_cond
|
|
# ret_expr_or_cond ::= ret_cond
|
|
# ret_or ::= expr JUMP_IF_TRUE_OR_POP ret_expr_or_cond COME_FROM
|
|
|
|
# See https://github.com/rocky/python-uncompyle6/issues/5
|
|
|
|
def minimize(x, y):
|
|
return x or (x if x < y else y)
|