@@ -1512,7 +1512,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
15121512 keyword = kwlist [i ];
15131513 if (* format == '|' ) {
15141514 if (min != INT_MAX ) {
1515- PyErr_SetString (PyExc_RuntimeError ,
1515+ PyErr_SetString (PyExc_SystemError ,
15161516 "Invalid format string (| specified twice)" );
15171517 return cleanreturn (0 , & freelist );
15181518 }
@@ -1521,14 +1521,14 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
15211521 format ++ ;
15221522
15231523 if (max != INT_MAX ) {
1524- PyErr_SetString (PyExc_RuntimeError ,
1524+ PyErr_SetString (PyExc_SystemError ,
15251525 "Invalid format string ($ before |)" );
15261526 return cleanreturn (0 , & freelist );
15271527 }
15281528 }
15291529 if (* format == '$' ) {
15301530 if (max != INT_MAX ) {
1531- PyErr_SetString (PyExc_RuntimeError ,
1531+ PyErr_SetString (PyExc_SystemError ,
15321532 "Invalid format string ($ specified twice)" );
15331533 return cleanreturn (0 , & freelist );
15341534 }
@@ -1546,7 +1546,7 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
15461546 }
15471547 }
15481548 if (IS_END_OF_FORMAT (* format )) {
1549- PyErr_Format (PyExc_RuntimeError ,
1549+ PyErr_Format (PyExc_SystemError ,
15501550 "More keyword list entries (%d) than "
15511551 "format specifiers (%d)" , len , i );
15521552 return cleanreturn (0 , & freelist );
@@ -1598,14 +1598,14 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
15981598 * keyword args */
15991599 msg = skipitem (& format , p_va , flags );
16001600 if (msg ) {
1601- PyErr_Format (PyExc_RuntimeError , "%s: '%s'" , msg ,
1601+ PyErr_Format (PyExc_SystemError , "%s: '%s'" , msg ,
16021602 format );
16031603 return cleanreturn (0 , & freelist );
16041604 }
16051605 }
16061606
16071607 if (!IS_END_OF_FORMAT (* format ) && (* format != '|' ) && (* format != '$' )) {
1608- PyErr_Format (PyExc_RuntimeError ,
1608+ PyErr_Format (PyExc_SystemError ,
16091609 "more argument specifiers than keyword list entries "
16101610 "(remaining format:'%s')" , format );
16111611 return cleanreturn (0 , & freelist );
0 commit comments