summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-09-06 06:28:06 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-09-06 06:28:06 +0000
commite1405f5ce1c06accf80648d55a510bc37bcb1470 (patch)
treefbf678fa903a698260893f877de4385e42d9c620 /Parser
parent20f76e3b2d4dba3d706ada30f349060df9af64fd (diff)
downloadcpython-e1405f5ce1c06accf80648d55a510bc37bcb1470.tar.gz
with and as are now keywords. There are some generated files I can't recreate.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index be53e1c591..c951396c97 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -89,9 +89,7 @@ PyParser_ParseFileFlags(FILE *fp, const char *filename, grammar *g, int start,
return parsetok(tok, g, start, err_ret, flags);
}
-/* Parse input coming from the given tokenizer structure.
- Return error code. */
-
+#if 0
static char with_msg[] =
"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
@@ -105,6 +103,10 @@ warn(const char *msg, const char *filename, int lineno)
filename = "<string>";
PySys_WriteStderr(msg, filename, lineno);
}
+#endif
+
+/* Parse input coming from the given tokenizer structure.
+ Return error code. */
static node *
parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,