Cleanup: use C comments for descriptive text

Follow our code style guide by using C-comments for text descriptions.
This commit is contained in:
2020-10-10 18:19:55 +11:00
parent c735aca42e
commit 2abfcebb0e
342 changed files with 2515 additions and 2419 deletions

View File

@@ -646,10 +646,12 @@ PyObject *PyC_ExceptionBuffer(void)
goto error_cleanup;
}
Py_INCREF(stdout_backup); // since these were borrowed we don't want them freed when replaced.
/* Since these were borrowed we don't want them freed when replaced. */
Py_INCREF(stdout_backup);
Py_INCREF(stderr_backup);
PySys_SetObject("stdout", string_io); // both of these are freed when restoring
/* Both of these are freed when restoring. */
PySys_SetObject("stdout", string_io);
PySys_SetObject("stderr", string_io);
PyErr_Restore(error_type, error_value, error_traceback);