File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ What's New in Python 2.7.3?
99Core and Builtins
1010-----------------
1111
12+ - Issue #13268: Fix the assert statement when a tuple is passed as the message.
13+
1214- Issue #13018: Fix reference leaks in error paths in dictobject.c.
1315 Patch by Suman Saha.
1416
Original file line number Diff line number Diff line change @@ -2079,11 +2079,9 @@ compiler_assert(struct compiler *c, stmt_ty s)
20792079 ADDOP_O (c , LOAD_GLOBAL , assertion_error , names );
20802080 if (s -> v .Assert .msg ) {
20812081 VISIT (c , expr , s -> v .Assert .msg );
2082- ADDOP_I (c , RAISE_VARARGS , 2 );
2083- }
2084- else {
2085- ADDOP_I (c , RAISE_VARARGS , 1 );
2082+ ADDOP_I (c , CALL_FUNCTION , 1 );
20862083 }
2084+ ADDOP_I (c , RAISE_VARARGS , 1 );
20872085 compiler_use_next_block (c , end );
20882086 return 1 ;
20892087}
You can’t perform that action at this time.
0 commit comments