summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 12:26:24 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 12:26:24 (GMT)
commit499dfcf29da7b7d1ca11f697cece773936c2ba42 (patch)
tree5b295eac3254ac6d6f0253d037081d7456ff9d7c /Modules/gcmodule.c
parentbfc7bf06a63b5bf4cac0dae7c0d370fbc81563f9 (diff)
downloadcpython-499dfcf29da7b7d1ca11f697cece773936c2ba42.zip
cpython-499dfcf29da7b7d1ca11f697cece773936c2ba42.tar.gz
cpython-499dfcf29da7b7d1ca11f697cece773936c2ba42.tar.bz2
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 10a4ed7..b05675c 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