summaryrefslogtreecommitdiff
path: root/Parser
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
commitaaa4e9a4380f904c6ae4e7dadd229c48d3adc615 (patch)
tree950dcec5ce602ae71eee274bbc4fe4e775bd8c11 /Parser
parent477efb394412314d47fdfb3f7c287edb028809c0 (diff)
downloadcpython-git-aaa4e9a4380f904c6ae4e7dadd229c48d3adc615.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 'Parser')
-rw-r--r--Parser/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 441d05a9bb..556be46b67 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -590,7 +590,7 @@ decoding_fgets(char *s, int size, struct tok_state *tok)
if (filename != NULL) {
PyErr_Format(PyExc_SyntaxError,
"Non-UTF-8 code starting with '\\x%.2x' "
- "in file %.200U on line %i, "
+ "in file %U on line %i, "
"but no encoding declared; "
"see http://python.org/dev/peps/pep-0263/ for details",
badchar, filename, tok->lineno + 1);