comparison Python/errors.c @ 72925:7109f31300fb

Rename _Py_identifier to _Py_IDENTIFIER.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 14 Oct 2011 10:20:37 +0200
parents 793c75177d28
children db4aa878cea2
comparison
equal deleted inserted replaced
72924:158430b2b552 72925:7109f31300fb
710 /* Call when an exception has occurred but there is no way for Python 710 /* Call when an exception has occurred but there is no way for Python
711 to handle it. Examples: exception in __del__ or during GC. */ 711 to handle it. Examples: exception in __del__ or during GC. */
712 void 712 void
713 PyErr_WriteUnraisable(PyObject *obj) 713 PyErr_WriteUnraisable(PyObject *obj)
714 { 714 {
715 _Py_identifier(__module__); 715 _Py_IDENTIFIER(__module__);
716 PyObject *f, *t, *v, *tb; 716 PyObject *f, *t, *v, *tb;
717 PyErr_Fetch(&t, &v, &tb); 717 PyErr_Fetch(&t, &v, &tb);
718 f = PySys_GetObject("stderr"); 718 f = PySys_GetObject("stderr");
719 if (f != NULL && f != Py_None) { 719 if (f != NULL && f != Py_None) {
720 PyFile_WriteString("Exception ", f); 720 PyFile_WriteString("Exception ", f);