mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Repaired damaged comments, and extra spaces in fatal error msgs we'd better
not ever see!
This commit is contained in:
parent
8d691c8422
commit
9acdd3aed8
1 changed files with 7 additions and 6 deletions
|
|
@ -2726,13 +2726,13 @@ static int _PyPclose(FILE *file)
|
||||||
* an exception. Just die.
|
* an exception. Just die.
|
||||||
*/
|
*/
|
||||||
Py_FatalError("unable to allocate interpreter state "
|
Py_FatalError("unable to allocate interpreter state "
|
||||||
" when closing popen object.");
|
"when closing popen object.");
|
||||||
return -1; /* unreachable */
|
return -1; /* unreachable */
|
||||||
}
|
}
|
||||||
pThreadState = PyThreadState_New(pInterpreterState);
|
pThreadState = PyThreadState_New(pInterpreterState);
|
||||||
if (!pThreadState) {
|
if (!pThreadState) {
|
||||||
Py_FatalError("unable to allocate thread state "
|
Py_FatalError("unable to allocate thread state "
|
||||||
" when closing popen object.");
|
"when closing popen object.");
|
||||||
return -1; /* unreachable */
|
return -1; /* unreachable */
|
||||||
}
|
}
|
||||||
/* Grab the global lock. Note that this will deadlock if the
|
/* Grab the global lock. Note that this will deadlock if the
|
||||||
|
|
@ -2802,9 +2802,9 @@ static int _PyPclose(FILE *file)
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
/* Tear down the thread & interpreter states.
|
/* Tear down the thread & interpreter states.
|
||||||
* Note that interpreter state clear & delete functions automatically
|
* Note that interpreter state clear & delete functions automatically
|
||||||
* call the thread & clear functions, and * indeed insist on doing
|
* call the thread clear & delete functions, and indeed insist on
|
||||||
* that themselves. The lock must be held during the clear, but need
|
* doing that themselves. The lock must be held during the clear, but
|
||||||
* not be held during the delete.
|
* need not be held during the delete.
|
||||||
*/
|
*/
|
||||||
PyInterpreterState_Clear(pInterpreterState);
|
PyInterpreterState_Clear(pInterpreterState);
|
||||||
PyEval_ReleaseThread(pThreadState);
|
PyEval_ReleaseThread(pThreadState);
|
||||||
|
|
@ -2813,7 +2813,8 @@ static int _PyPclose(FILE *file)
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
|
#else /* which OS? */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
posix_popen(PyObject *self, PyObject *args)
|
posix_popen(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue