]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
t_bootstram(): Use PySys_WriteStderr() instead of fprintf(stderr,...).
authorFred Drake <fdrake@acm.org>
Fri, 20 Oct 2000 20:02:37 +0000 (20:02 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 20 Oct 2000 20:02:37 +0000 (20:02 +0000)
This closes bug #117324.

Modules/threadmodule.c

index 97ab4e1375cd06eada55fae70f8d853bc9392290..e0afde5ea9e1a8439bea17eb66e04da05a4b0fd4 100644 (file)
@@ -197,7 +197,7 @@ t_bootstrap(void *boot_raw)
                if (PyErr_ExceptionMatches(PyExc_SystemExit))
                        PyErr_Clear();
                else {
-                       fprintf(stderr, "Unhandled exception in thread:\n");
+                       PySys_WriteStderr("Unhandled exception in thread:\n");
                        PyErr_PrintEx(0);
                }
        }