commit | c24ea08644279224a7a8be419648261f9566c9b3 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Fri Mar 22 23:53:36 2002 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Fri Mar 22 23:53:36 2002 +0000 |
tree | ce7be60ecb2edfe2e8dbac4c231ef881130b3071 | |
parent | 12a6d942d8138b4dd1a32d4d9a40ca312708aeee [diff] [blame] |
Disable the parser hacks that enabled the "yield" keyword using a future statement.
diff --git a/Python/ceval.c b/Python/ceval.c index ec62350..5e67b29 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -2984,10 +2984,12 @@ 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; }