You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
binary_expr -> bin_op to match Python AST
I know binary_expr is more natural, but as with things Python we sometimes sacrifice elegance and clarity for Python Fascism.
This commit is contained in:
@@ -189,7 +189,9 @@ TABLE_DIRECT = {
|
||||
'INPLACE_AND': ( '&=' ,),
|
||||
'INPLACE_OR': ( '|=' ,),
|
||||
'INPLACE_XOR': ( '^=' ,),
|
||||
'binary_expr': ( '%c %c %c', 0,
|
||||
|
||||
# bin_op (formerly "binary_expr") is the Python AST BinOp
|
||||
'bin_op': ( '%c %c %c', 0,
|
||||
(-1, 'binary_op'),
|
||||
( 1, 'expr' ) ),
|
||||
|
||||
|
Reference in New Issue
Block a user