@@ -6497,18 +6497,18 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
64976497 PyCodeObject * co = f -> f_code ;
64986498 Py_ssize_t i , n ;
64996499 if (co == NULL ) {
6500- PyErr_SetString (PyExc_SystemError ,
6500+ PyErr_SetString (PyExc_RuntimeError ,
65016501 "super(): no code object" );
65026502 return -1 ;
65036503 }
65046504 if (co -> co_argcount == 0 ) {
6505- PyErr_SetString (PyExc_SystemError ,
6505+ PyErr_SetString (PyExc_RuntimeError ,
65066506 "super(): no arguments" );
65076507 return -1 ;
65086508 }
65096509 obj = f -> f_localsplus [0 ];
65106510 if (obj == NULL ) {
6511- PyErr_SetString (PyExc_SystemError ,
6511+ PyErr_SetString (PyExc_RuntimeError ,
65126512 "super(): arg[0] deleted" );
65136513 return -1 ;
65146514 }
@@ -6527,18 +6527,18 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
65276527 PyTuple_GET_SIZE (co -> co_cellvars ) + i ;
65286528 PyObject * cell = f -> f_localsplus [index ];
65296529 if (cell == NULL || !PyCell_Check (cell )) {
6530- PyErr_SetString (PyExc_SystemError ,
6530+ PyErr_SetString (PyExc_RuntimeError ,
65316531 "super(): bad __class__ cell" );
65326532 return -1 ;
65336533 }
65346534 type = (PyTypeObject * ) PyCell_GET (cell );
65356535 if (type == NULL ) {
6536- PyErr_SetString (PyExc_SystemError ,
6536+ PyErr_SetString (PyExc_RuntimeError ,
65376537 "super(): empty __class__ cell" );
65386538 return -1 ;
65396539 }
65406540 if (!PyType_Check (type )) {
6541- PyErr_Format (PyExc_SystemError ,
6541+ PyErr_Format (PyExc_RuntimeError ,
65426542 "super(): __class__ is not a type (%s)" ,
65436543 Py_TYPE (type )-> tp_name );
65446544 return -1 ;
@@ -6547,7 +6547,7 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
65476547 }
65486548 }
65496549 if (type == NULL ) {
6550- PyErr_SetString (PyExc_SystemError ,
6550+ PyErr_SetString (PyExc_RuntimeError ,
65516551 "super(): __class__ cell not found" );
65526552 return -1 ;
65536553 }
0 commit comments