From aaa4e9a4380f904c6ae4e7dadd229c48d3adc615 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 5 Jan 2011 03:33:26 +0000 Subject: 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. --- Objects/codeobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objects/codeobject.c') diff --git a/Objects/codeobject.c b/Objects/codeobject.c index e9cae134c09..bb938ea0aa3 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( - "", + "", co->co_name, co, co->co_filename, lineno); } else { return PyUnicode_FromFormat( - "", + "", co->co_name, co, lineno); } } -- cgit v1.2.3