comparison Python/pythonrun.c @ 22721:253de588f2fb legacy-trunk

Get rid of another use of PyArg_Parse()
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 01 Apr 2002 01:41:20 +0000
parents eebae4f60d05
children d8bc68cb17e0
comparison
equal deleted inserted replaced
22720:6c4b193016c6 22721:253de588f2fb
734 long hold; 734 long hold;
735 PyObject *v; 735 PyObject *v;
736 736
737 /* old style errors */ 737 /* old style errors */
738 if (PyTuple_Check(err)) 738 if (PyTuple_Check(err))
739 return PyArg_Parse(err, "(O(ziiz))", message, filename, 739 return PyArg_ParseTuple(err, "O(ziiz)", message, filename,
740 lineno, offset, text); 740 lineno, offset, text);
741 741
742 /* new style errors. `err' is an instance */ 742 /* new style errors. `err' is an instance */
743 743
744 if (! (v = PyObject_GetAttrString(err, "msg"))) 744 if (! (v = PyObject_GetAttrString(err, "msg")))
745 goto finally; 745 goto finally;