summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-25 08:29:14 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-25 08:29:14 (GMT)
commitd5b635f1969fdd609f0aff5669c9ec30e61be62e (patch)
tree1c854f8108e2b22d8c5ba4d529b6d99cd9f5f244 /Parser/tokenizer.c
parent80055f6295dd48274ae68d13806c7ee3c5b5882f (diff)
downloadcpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.zip
cpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.tar.gz
cpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.tar.bz2
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 6df3005..799db20 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1531,7 +1531,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
#ifndef PGEN
if (Py_Py3kWarningFlag && token == NOTEQUAL && c == '<') {
if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
- "<> not supported in 3.x",
+ "<> not supported in 3.x; use !=",
tok->filename, tok->lineno,
NULL, NULL)) {
return ERRORTOKEN;