]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
authorChristian Heimes <christian@cheimes.de>
Wed, 26 Mar 2008 22:20:26 +0000 (22:20 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 26 Mar 2008 22:20:26 +0000 (22:20 +0000)
Parser/parsetok.c

index d8c8f62257cc4e45cc8405122f5a3ac73f96f467..71792dd4694a957f8826ce2c84c6ebc162904ad1 100644 (file)
@@ -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) {