summaryrefslogtreecommitdiff
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 13:26:24 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 13:26:24 +0100
commit758975ac24d240747b3e4f3bc7fa682cc94d6ebc (patch)
tree351fb59aee97ee1977bc3c6e110f2ac9b95f6023 /Modules/gcmodule.c
parent1339099e7b7d43ecfee6af2fc213b08547222fa9 (diff)
downloadcpython-758975ac24d240747b3e4f3bc7fa682cc94d6ebc.tar.gz
Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of
PyOS_snprintf().
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 10a4ed7f6a..b05675c84a 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -680,8 +680,8 @@ handle_weakrefs(PyGC_Head *unreachable, PyGC_Head *old)
static void
debug_cycle(char *msg, PyObject *op)
{
- PySys_WriteStderr("gc: %.100s <%.100s %p>\n",
- msg, Py_TYPE(op)->tp_name, op);
+ PySys_FormatStderr("gc: %s <%s %p>\n",
+ msg, Py_TYPE(op)->tp_name, op);
}
/* Handle uncollectable garbage (cycles with finalizers, and stuff reachable