mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
This commit is contained in:
parent
07e9e380f9
commit
bd303c165b
17 changed files with 93 additions and 89 deletions
|
@ -17,6 +17,8 @@ static PyObject *ThreadError;
|
|||
static long nb_threads = 0;
|
||||
static PyObject *str_dict;
|
||||
|
||||
_Py_IDENTIFIER(stderr);
|
||||
|
||||
/* Lock objects */
|
||||
|
||||
typedef struct {
|
||||
|
@ -1005,7 +1007,7 @@ t_bootstrap(void *boot_raw)
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue