Fix a 3.6 try/except-as bug

This commit is contained in:
rocky
2018-03-19 11:10:03 -04:00
parent 6ab711baab
commit 88ef4baca8
6 changed files with 26 additions and 3 deletions

View File

@@ -240,10 +240,10 @@ class Python3Parser(PythonParser):
except_suite ::= returns
except_cond1 ::= DUP_TOP expr COMPARE_OP
jmp_false POP_TOP POP_TOP POP_TOP
jmp_false POP_TOP POP_TOP POP_TOP
except_cond2 ::= DUP_TOP expr COMPARE_OP
jmp_false POP_TOP store POP_TOP
jmp_false POP_TOP store POP_TOP
except ::= POP_TOP POP_TOP POP_TOP c_stmts_opt POP_EXCEPT _jump
except ::= POP_TOP POP_TOP POP_TOP returns