diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-06 06:28:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-06 06:28:06 (GMT) |
commit | ca460d9722c9542004c4cf34d9231641ac18e34b (patch) | |
tree | b007e31668de7ff4b37e0c8d80dc575e8b600118 /Parser | |
parent | 98775dfebc86aca40b27dcca5e4f4fd3a07e8acb (diff) | |
download | cpython-ca460d9722c9542004c4cf34d9231641ac18e34b.zip cpython-ca460d9722c9542004c4cf34d9231641ac18e34b.tar.gz cpython-ca460d9722c9542004c4cf34d9231641ac18e34b.tar.bz2 |
with and as are now keywords. There are some generated files I can't recreate.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/parsetok.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index be53e1c..c951396 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, |