X Tutup
Skip to content

Commit b52f341

Browse files
committed
Python 3: "or" doesn't have optional come_from
1 parent 649e451 commit b52f341

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

uncompyle6/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ def p_expr(self, args):
453453
_mklambda ::= load_closure mklambda
454454
_mklambda ::= mklambda
455455
456-
or ::= expr jmp_true expr come_from_opt
457456
and2 ::= _jump jmp_false COME_FROM expr COME_FROM
458457
459458
expr ::= conditional

uncompyle6/parsers/parse2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def p_expr2(self, args):
216216
expr ::= unary_convert
217217
218218
and ::= expr jmp_false expr come_from_opt
219+
or ::= expr jmp_true expr come_from_opt
219220
220221
slice0 ::= expr SLICE+0
221222
slice0 ::= expr DUP_TOP SLICE+0

uncompyle6/parsers/parse3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def p_grammar(self, args):
232232
WITH_CLEANUP END_FINALLY
233233
234234
and ::= expr jmp_false expr COME_FROM
235+
or ::= expr jmp_true expr COME_FROM
235236
'''
236237

237238
def p_misc3(self, args):

0 commit comments

Comments
 (0)
X Tutup