summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-12 15:02:41 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-12 15:02:41 (GMT)
commitb41addf6a6dca8ea2183f91a9fb9f8eee3d1ff0a (patch)
tree893f30fb224c77a169e0a01cd824c943bf20db36
parenta890e688076d323baa8aef5b5da4bc6a60ad3adc (diff)
downloadcpython-b41addf6a6dca8ea2183f91a9fb9f8eee3d1ff0a.zip
cpython-b41addf6a6dca8ea2183f91a9fb9f8eee3d1ff0a.tar.gz
cpython-b41addf6a6dca8ea2183f91a9fb9f8eee3d1ff0a.tar.bz2
Replace all calls to fprintf(stderr, ...) with calls to PySys_WriteStderr(...).
-rw-r--r--Modules/_tkinter.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index f80b118..b4f4d56 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -325,11 +325,11 @@ Tcl_AppInit(interp)
main = Tk_MainWindow(interp);
if (Tcl_Init(interp) == TCL_ERROR) {
- fprintf(stderr, "Tcl_Init error: %s\n", interp->result);
+ PySys_WriteStderr("Tcl_Init error: %s\n", interp->result);
return TCL_ERROR;
}
if (Tk_Init(interp) == TCL_ERROR) {
- fprintf(stderr, "Tk_Init error: %s\n", interp->result);
+ PySys_WriteStderr("Tk_Init error: %s\n", interp->result);
return TCL_ERROR;
}
return TCL_OK;
@@ -464,7 +464,7 @@ Tkapp_Call(self, args)
to Tcl_SplitList() inside Tcl_Eval()... It can save a bundle! */
if (Py_VerboseFlag >= 2) {
for (i = 0; i < argc; i++)
- fprintf(stderr, "%s ", argv[i]);
+ PySys_WriteStderr("%s ", argv[i]);
}
if (argc < 1 ||
!Tcl_GetCommandInfo(interp, argv[0], &info) ||
@@ -472,7 +472,7 @@ Tkapp_Call(self, args)
{
char *cmd;
if (Py_VerboseFlag >= 2)
- fprintf(stderr, "... use TclEval ");
+ PySys_WriteStderr("... use TclEval ");
cmd = Tcl_Merge(argc, argv);
i = Tcl_Eval(interp, cmd);
ckfree(cmd);
@@ -483,13 +483,13 @@ Tkapp_Call(self, args)
}
if (i == TCL_ERROR) {
if (Py_VerboseFlag >= 2)
- fprintf(stderr, "... error: '%s'\n",
+ PySys_WriteStderr("... error: '%s'\n",
interp->result);
Tkinter_Error(self);
}
else {
if (Py_VerboseFlag >= 2)
- fprintf(stderr, "-> '%s'\n", interp->result);
+ PySys_WriteStderr("-> '%s'\n", interp->result);
res = PyString_FromString(interp->result);
}
@@ -1714,7 +1714,7 @@ panic(char * format, ...)
va_start(varg, format);
- vfprintf(stderr, format, varg);
+ vPySys_WriteStderr(format, varg);
(void) fflush(stderr);
va_end(varg);