summaryrefslogtreecommitdiff
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-05 03:33:26 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-05 03:33:26 +0000
commitb3486edd771ae0bcedee3b0a2404488557014a70 (patch)
tree73b1d5f69f25c8bf581e6a64276db1d83deac35b /Objects/codeobject.c
parentd14169bf79169c356451b9d0c64868650f1a4cd5 (diff)
downloadcpython-b3486edd771ae0bcedee3b0a2404488557014a70.tar.gz
Remove arbitrary string length limits
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed size, it is no more a fixed-buffer of 500 bytes.
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index e9cae134c0..bb938ea0aa 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -347,11 +347,11 @@ code_repr(PyCodeObject *co)
lineno = -1;
if (co->co_filename && PyUnicode_Check(co->co_filename)) {
return PyUnicode_FromFormat(
- "<code object %.100U at %p, file \"%.300U\", line %d>",
+ "<code object %U at %p, file \"%U\", line %d>",
co->co_name, co, co->co_filename, lineno);
} else {
return PyUnicode_FromFormat(
- "<code object %.100U at %p, file ???, line %d>",
+ "<code object %U at %p, file ???, line %d>",
co->co_name, co, lineno);
}
}