diff options
author | Thomas Wouters <thomas@python.org> | 2006-02-28 22:42:15 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-02-28 22:42:15 (GMT) |
commit | 8ae1295c5b6cfef0fc6db5c97fe68a0b40de8331 (patch) | |
tree | 9f4e563b80a5748e23c5e15b56502731a12501cc /Parser/parsetok.c | |
parent | 6cba25666c278760a9fea024948b8add7d5c4b1a (diff) | |
download | cpython-8ae1295c5b6cfef0fc6db5c97fe68a0b40de8331.zip cpython-8ae1295c5b6cfef0fc6db5c97fe68a0b40de8331.tar.gz cpython-8ae1295c5b6cfef0fc6db5c97fe68a0b40de8331.tar.bz2 |
Make 'as' an actual keyword when with's future statement is used. Not
actually necessary for functionality, but good for transition.
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r-- | Parser/parsetok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index cf445e1..8b1f70c 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -176,8 +176,8 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, if (len == 4 && str[0] == 'w' && strcmp(str, "with") == 0) warn(with_msg, err_ret->filename, tok->lineno); else if (!(handling_import || handling_with) && - len == 2 && - str[0] == 'a' && strcmp(str, "as") == 0) + len == 2 && str[0] == 'a' && + strcmp(str, "as") == 0) warn(as_msg, err_ret->filename, tok->lineno); } else if (type == NAME && |