svn+ssh://pythondev@svn.python.org/python/trunk
........
r61954 | christian.heimes | 2008-03-26 23:20:26 +0100 (Wed, 26 Mar 2008) | 1 line
Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
........
r61956 | christian.heimes | 2008-03-26 23:51:58 +0100 (Wed, 26 Mar 2008) | 1 line
Initialize PyCompilerFlags cf_flags with 0
........
r61957 | christian.heimes | 2008-03-26 23:55:31 +0100 (Wed, 26 Mar 2008) | 1 line
I forgot to svn add the future test
........
--- /dev/null
+from __future__ import print_function
+from __future__ import unicode_literals
+
+import unittest
+from test import test_support
+
+def test_main():
+ pass
+
+if __name__ == "__main__":
+ test_main()
}
else
n = NULL;
+
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
*flags = ps->p_flags;
#endif
if (arena == NULL)
return NULL;
+ flags.cf_flags = 0;
mod = PyParser_ASTFromFile(fp, pathname, NULL,
Py_file_input, 0, 0, &flags,
NULL, arena);
if (arena == NULL)
return NULL;
+ flags.cf_flags = 0;
mod = PyParser_ASTFromString(str, filename, start, &flags, arena);
if (mod == NULL) {
PyArena_Free(arena);