From 6dae85f409642f29ff37c8648f977ea24883e75e Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Sat, 24 Nov 2007 13:20:22 +0000 Subject: Warning "<> not supported in 3.x" should be enabled only when the -3 option is set. --- Parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v0.12