mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Disable the parser hacks that enabled the "yield" keyword using a future
statement.
This commit is contained in:
parent
12a6d942d8
commit
c24ea08644
5 changed files with 25 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue