summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-03-26 22:20:26 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-03-26 22:20:26 (GMT)
commit342212c52afd375d93f44f3ecda0914d77372f26 (patch)
tree3c2ec380edb1d73609018b55eed57bdd3eaddb4f /Parser/parsetok.c
parent3c60833e1e53f6239825b44f76fa22172feb1790 (diff)
downloadcpython-342212c52afd375d93f44f3ecda0914d77372f26.zip
cpython-342212c52afd375d93f44f3ecda0914d77372f26.tar.gz
cpython-342212c52afd375d93f44f3ecda0914d77372f26.tar.bz2
Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index d8c8f62..71792dd 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -213,7 +213,9 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
else
n = NULL;
+#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
*flags = ps->p_flags;
+#endif
PyParser_Delete(ps);
if (n == NULL) {