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)
3515
3515
3516
3516
[orig, res] PREP_RERAISE_STAR
3517
3517
[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
3521
3519
[exc] POP_TOP
3522
3520
[] JUMP_FORWARD L0
3523
3521
@@ -3687,9 +3685,7 @@ compiler_try_star_except(struct compiler *c, stmt_ty s)
3687
3685
compiler_use_next_block (c , reraise_star );
3688
3686
ADDOP (c , PREP_RERAISE_STAR );
3689
3687
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 );
3693
3689
NEXT_BLOCK (c );
3694
3690
3695
3691
/* Nothing to reraise */
You can’t perform that action at this time.
0 commit comments