summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/ae/AEmodule.c2
-rw-r--r--Mac/Modules/ae/aesupport.py2
-rw-r--r--Mac/Modules/ctl/Ctlmodule.c2
-rw-r--r--Mac/Modules/ctl/ctlsupport.py2
-rw-r--r--Mac/Modules/dlg/Dlgmodule.c4
-rw-r--r--Mac/Modules/dlg/dlgsupport.py4
-rw-r--r--Mac/Modules/macosmodule.c2
-rw-r--r--Mac/Modules/waste/wastemodule.c2
-rw-r--r--Mac/Modules/waste/wastesupport.py2
9 files changed, 11 insertions, 11 deletions
diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c
index 3127430..241cb5d 100644
--- a/Mac/Modules/ae/AEmodule.c
+++ b/Mac/Modules/ae/AEmodule.c
@@ -75,7 +75,7 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
if ( PyOS_InterruptOccurred() )
return 1;
if ( PyMac_HandleEvent(theEvent) < 0 ) {
- fprintf(stderr, "Exception in user event handler during AE processing\n");
+ PySys_WriteStderr("Exception in user event handler during AE processing\n");
PyErr_Clear();
}
return 0;
diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py
index 58af2df..d82496b 100644
--- a/Mac/Modules/ae/aesupport.py
+++ b/Mac/Modules/ae/aesupport.py
@@ -115,7 +115,7 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
if ( PyOS_InterruptOccurred() )
return 1;
if ( PyMac_HandleEvent(theEvent) < 0 ) {
- fprintf(stderr, "Exception in user event handler during AE processing\\n");
+ PySys_WriteStderr("Exception in user event handler during AE processing\\n");
PyErr_Clear();
}
return 0;
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c
index 6b43b68..6a74d23 100644
--- a/Mac/Modules/ctl/Ctlmodule.c
+++ b/Mac/Modules/ctl/Ctlmodule.c
@@ -1419,7 +1419,7 @@ mytracker(ctl, part)
if (rv)
Py_DECREF(rv);
else
- fprintf(stderr, "TrackControl: exception in tracker function\n");
+ PySys_WriteStderr("TrackControl: exception in tracker function\n");
}
diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py
index e01e871..84dd6ce 100644
--- a/Mac/Modules/ctl/ctlsupport.py
+++ b/Mac/Modules/ctl/ctlsupport.py
@@ -137,7 +137,7 @@ mytracker(ctl, part)
if (rv)
Py_DECREF(rv);
else
- fprintf(stderr, "TrackControl: exception in tracker function\\n");
+ PySys_WriteStderr("TrackControl: exception in tracker function\\n");
}
"""
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);
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c
index 68f9b48..14f807c 100644
--- a/Mac/Modules/macosmodule.c
+++ b/Mac/Modules/macosmodule.c
@@ -377,7 +377,7 @@ MacOS_HighLevelEventProc(EventRecord *e)
Py_DECREF(args);
}
if (res == NULL) {
- fprintf(stderr, "Exception in MacOS_HighLevelEventProc:\n");
+ PySys_WriteStderr("Exception in MacOS_HighLevelEventProc:\n");
PyErr_Print();
}
else
diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c
index 660401f..ffb39c3 100644
--- a/Mac/Modules/waste/wastemodule.c
+++ b/Mac/Modules/waste/wastemodule.c
@@ -150,7 +150,7 @@ any_handler(WESelector what, WEObjectReference who, PyObject *args, PyObject **r
Py_DECREF(func);
Py_DECREF(key);
if ( *rv == NULL ) {
- fprintf(stderr, "--Exception in callback: ");
+ PySys_WriteStderr("--Exception in callback: ");
PyErr_Print();
return errAEReplyNotArrived;
}
diff --git a/Mac/Modules/waste/wastesupport.py b/Mac/Modules/waste/wastesupport.py
index 76eb010..488e01a 100644
--- a/Mac/Modules/waste/wastesupport.py
+++ b/Mac/Modules/waste/wastesupport.py
@@ -164,7 +164,7 @@ any_handler(WESelector what, WEObjectReference who, PyObject *args, PyObject **r
Py_DECREF(func);
Py_DECREF(key);
if ( *rv == NULL ) {
- fprintf(stderr, "--Exception in callback: ");
+ PySys_WriteStderr("--Exception in callback: ");
PyErr_Print();
return errAEReplyNotArrived;
}