Handle Ternary "or". Remove mention of uncompyle3

uncompyle3 removed per Mysterie's request
[Fixes Issue #5]
This commit is contained in:
rocky
2016-04-07 07:11:35 -04:00
parent 4e57c3da5b
commit 9f7d36f8fb
9 changed files with 20 additions and 14 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,11 @@
# 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)