summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-24 13:20:22 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2007-11-24 13:20:22 (GMT)
commit6dae85f409642f29ff37c8648f977ea24883e75e (patch)
treec6b63245f50c03f85ad173ad364c0125145948fe /Parser
parentf8b6abd9721337429f7103d7ee9042ab5d9515a4 (diff)
downloadcpython-6dae85f409642f29ff37c8648f977ea24883e75e.zip
cpython-6dae85f409642f29ff37c8648f977ea24883e75e.tar.gz
cpython-6dae85f409642f29ff37c8648f977ea24883e75e.tar.bz2
Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
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 4ff2b98..f59ab59 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1478,7 +1478,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
int c2 = tok_nextc(tok);
int token = PyToken_TwoChars(c, c2);
#ifndef PGEN
- if (token == NOTEQUAL && c == '<') {
+ if (Py_Py3kWarningFlag && token == NOTEQUAL && c == '<') {
if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
"<> not supported in 3.x",
tok->filename, tok->lineno,