[Python-checkins] r61956 - python/trunk/Python/import.c python/trunk/Python/pythonrun.c
christian.heimes
python-checkins at python.org
Wed Mar 26 23:51:59 CET 2008
Author: christian.heimes
Date: Wed Mar 26 23:51:58 2008
New Revision: 61956
Modified:
python/trunk/Python/import.c
python/trunk/Python/pythonrun.c
Log:
Initialize PyCompilerFlags cf_flags with 0
Modified: python/trunk/Python/import.c
==============================================================================
--- python/trunk/Python/import.c (original)
+++ python/trunk/Python/import.c Wed Mar 26 23:51:58 2008
@@ -823,6 +823,8 @@
if (arena == NULL)
return NULL;
+ flags.cf_flags = 0;
+
mod = PyParser_ASTFromFile(fp, pathname, Py_file_input, 0, 0, &flags,
NULL, arena);
if (mod) {
Modified: python/trunk/Python/pythonrun.c
==============================================================================
--- python/trunk/Python/pythonrun.c (original)
+++ python/trunk/Python/pythonrun.c Wed Mar 26 23:51:58 2008
@@ -1398,6 +1398,8 @@
if (arena == NULL)
return NULL;
+ flags.cf_flags = 0;
+
mod = PyParser_ASTFromString(str, filename, start, &flags, arena);
if (mod == NULL) {
PyArena_Free(arena);
More information about the Python-checkins
mailing list