mirror of
https://github.com/python/cpython
synced 2026-09-29 11:50:30 +03:00
Replace fprintf(stderr, ...) with PySys_WriteStderr(...).
This commit is contained in:
parent
8442af35fe
commit
2f3667a7b9
3 changed files with 25 additions and 25 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue