summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/dlg
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-10-12 20:53:15 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-10-12 20:53:15 (GMT)
commitdeff89c8be78ed962d989bd88c5b3ee292263596 (patch)
treec394e51426f071b8dcfc11418cb6280e425b3d80 /Mac/Modules/dlg
parent3179b36014d1dd48cc3f1363edf4b1adecc12c79 (diff)
downloadcpython-deff89c8be78ed962d989bd88c5b3ee292263596.zip
cpython-deff89c8be78ed962d989bd88c5b3ee292263596.tar.gz
cpython-deff89c8be78ed962d989bd88c5b3ee292263596.tar.bz2
Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
Diffstat (limited to 'Mac/Modules/dlg')
-rw-r--r--Mac/Modules/dlg/Dlgmodule.c4
-rw-r--r--Mac/Modules/dlg/dlgsupport.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/dlg/Dlgmodule.c b/Mac/Modules/dlg/Dlgmodule.c
index 9e59ecd..2abd785 100644
--- a/Mac/Modules/dlg/Dlgmodule.c
+++ b/Mac/Modules/dlg/Dlgmodule.c
@@ -73,7 +73,7 @@ static pascal Boolean Dlg_UnivFilterProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
- fprintf(stderr, "Exception in Dialog Filter\n");
+ PySys_WriteStderr("Exception in Dialog Filter\n");
PyErr_Print();
*itemHit = -1; /* Fake return item */
return 1; /* We handled it */
@@ -124,7 +124,7 @@ static pascal void Dlg_UnivUserItemProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
- fprintf(stderr, "Exception in Dialog UserItem proc\n");
+ PySys_WriteStderr("Exception in Dialog UserItem proc\n");
PyErr_Print();
}
Py_XDECREF(res);
diff --git a/Mac/Modules/dlg/dlgsupport.py b/Mac/Modules/dlg/dlgsupport.py
index 8af8fe7..526bfa4 100644
--- a/Mac/Modules/dlg/dlgsupport.py
+++ b/Mac/Modules/dlg/dlgsupport.py
@@ -59,7 +59,7 @@ static pascal Boolean Dlg_UnivFilterProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
- fprintf(stderr, "Exception in Dialog Filter\\n");
+ PySys_WriteStderr("Exception in Dialog Filter\\n");
PyErr_Print();
*itemHit = -1; /* Fake return item */
return 1; /* We handled it */
@@ -110,7 +110,7 @@ static pascal void Dlg_UnivUserItemProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
- fprintf(stderr, "Exception in Dialog UserItem proc\\n");
+ PySys_WriteStderr("Exception in Dialog UserItem proc\\n");
PyErr_Print();
}
Py_XDECREF(res);