File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3515,9 +3515,7 @@ compiler_try_except(struct compiler *c, stmt_ty s)
35153515
35163516 [orig, res] PREP_RERAISE_STAR
35173517 [exc] DUP_TOP
3518- [exc, exc] LOAD_CONST None
3519- [exc, exc, None] COMPARE_IS
3520- [exc, is_none] POP_JUMP_IF_FALSE RER
3518+ [exc, exc] POP_JUMP_IF_NOT_NONE RER
35213519 [exc] POP_TOP
35223520 [] JUMP_FORWARD L0
35233521
@@ -3687,9 +3685,7 @@ compiler_try_star_except(struct compiler *c, stmt_ty s)
36873685 compiler_use_next_block (c , reraise_star );
36883686 ADDOP (c , PREP_RERAISE_STAR );
36893687 ADDOP (c , DUP_TOP );
3690- ADDOP_LOAD_CONST (c , Py_None );
3691- ADDOP_COMPARE (c , Is );
3692- ADDOP_JUMP (c , POP_JUMP_IF_FALSE , reraise );
3688+ ADDOP_JUMP (c , POP_JUMP_IF_NOT_NONE , reraise );
36933689 NEXT_BLOCK (c );
36943690
36953691 /* Nothing to reraise */
You can’t perform that action at this time.
0 commit comments