comparison Python/errors.c @ 44099:f324631462a2

Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
author Christian Heimes <christian@cheimes.de>
date Sun, 02 Dec 2007 14:31:20 +0000
parents 0889daf6d0d9
children b91ca87e6f32
comparison
equal deleted inserted replaced
44098:0889daf6d0d9 44099:f324631462a2
750 /* add attributes for the line number and filename for the error */ 750 /* add attributes for the line number and filename for the error */
751 PyErr_Fetch(&exc, &v, &tb); 751 PyErr_Fetch(&exc, &v, &tb);
752 PyErr_NormalizeException(&exc, &v, &tb); 752 PyErr_NormalizeException(&exc, &v, &tb);
753 /* XXX check that it is, indeed, a syntax error. It might not 753 /* XXX check that it is, indeed, a syntax error. It might not
754 * be, though. */ 754 * be, though. */
755 tmp = PyInt_FromLong(lineno); 755 tmp = PyLong_FromLong(lineno);
756 if (tmp == NULL) 756 if (tmp == NULL)
757 PyErr_Clear(); 757 PyErr_Clear();
758 else { 758 else {
759 if (PyObject_SetAttrString(v, "lineno", tmp)) 759 if (PyObject_SetAttrString(v, "lineno", tmp))
760 PyErr_Clear(); 760 PyErr_Clear();