Disable the parser hacks that enabled the "yield" keyword using a future

statement.
This commit is contained in:
Neil Schemenauer 2002-03-22 23:53:36 +00:00
parent 12a6d942d8
commit c24ea08644
5 changed files with 25 additions and 11 deletions

View file

@ -2984,10 +2984,12 @@ PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
result = 1;
cf->cf_flags |= compilerflags;
}
#if 0 /* future keyword */
if (codeflags & CO_GENERATOR_ALLOWED) {
result = 1;
cf->cf_flags |= CO_GENERATOR_ALLOWED;
}
#endif
}
return result;
}