summaryrefslogtreecommitdiffstats
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-12 18:23:55 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-12 18:23:55 (GMT)
commit2f3667a7b92b4ef5d3d3db986b0723cf27706930 (patch)
tree011d198b4e056fd20282d1be5ebd0225590e4880 /Objects/moduleobject.c
parent8442af35fe337a81efa83952574c5ca0dbcc2883 (diff)
downloadcpython-2f3667a7b92b4ef5d3d3db986b0723cf27706930.zip
cpython-2f3667a7b92b4ef5d3d3db986b0723cf27706930.tar.gz
cpython-2f3667a7b92b4ef5d3d3db986b0723cf27706930.tar.bz2
Replace fprintf(stderr, ...) with PySys_WriteStderr(...).
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 7a41439..a7f36d4 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -117,7 +117,7 @@ _PyModule_Clear(m)
char *s = PyString_AsString(key);
if (s[0] == '_' && s[1] != '_') {
if (Py_VerboseFlag > 1)
- fprintf(stderr, "# clear[1] %s\n", s);
+ PySys_WriteStderr("# clear[1] %s\n", s);
PyDict_SetItem(d, key, Py_None);
}
}
@@ -130,7 +130,7 @@ _PyModule_Clear(m)
char *s = PyString_AsString(key);
if (s[0] != '_' || strcmp(s, "__builtins__") != 0) {
if (Py_VerboseFlag > 1)
- fprintf(stderr, "# clear[2] %s\n", s);
+ PySys_WriteStderr("# clear[2] %s\n", s);
PyDict_SetItem(d, key, Py_None);
}
}