From c24ea08644279224a7a8be419648261f9566c9b3 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 22 Mar 2002 23:53:36 +0000 Subject: Disable the parser hacks that enabled the "yield" keyword using a future statement. --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index ec62350bda..5e67b297f8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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; } -- cgit v1.2.1