Mercurial > cpython-lru_cache-weakref
diff Modules/_threadmodule.c @ 86999:01c4a0af73cf
Issue #19512, #19515: remove shared identifiers, move identifiers where they
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Thu, 07 Nov 2013 23:07:29 +0100 |
| parents | 954167ce92a3 |
| children |
line wrap: on
line diff
--- a/Modules/_threadmodule.c Thu Nov 07 22:22:39 2013 +0100 +++ b/Modules/_threadmodule.c Thu Nov 07 23:07:29 2013 +0100 @@ -17,6 +17,8 @@ static long nb_threads = 0; static PyObject *str_dict; +_Py_IDENTIFIER(stderr); + /* Lock objects */ typedef struct { @@ -1005,7 +1007,7 @@ PySys_WriteStderr( "Unhandled exception in thread started by "); PyErr_Fetch(&exc, &value, &tb); - file = _PySys_GetObjectId(&_PyId_stderr); + file = _PySys_GetObjectId(&PyId_stderr); if (file != NULL && file != Py_None) PyFile_WriteObject(boot->func, file, 0); else
