diff Python/pythonrun.c @ 18612:4ac98fe7abd2 legacy-trunk

future.c: insert a cosmetic space. pythonrun.c, run_pyc_file(): repair semantic error wrt CO_GENERATOR vs CO_GENERATOR_ALLOWED.
author Tim Peters <tim.peters@gmail.com>
date Mon, 16 Jul 2001 03:11:48 +0000
parents fdb36a0c7e6e
children 0a90e5ec61b6
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Jul 16 02:29:45 2001 +0000
+++ b/Python/pythonrun.c	Mon Jul 16 03:11:48 2001 +0000
@@ -1076,7 +1076,7 @@
 	if (v && flags) {
 		if (co->co_flags & CO_NESTED)
 			flags->cf_flags |= PyCF_NESTED_SCOPES;
-		if (co->co_flags & CO_GENERATOR)
+		if (co->co_flags & CO_GENERATOR_ALLOWED)
 			flags->cf_flags |= PyCF_GENERATORS;
 #if 0
 		fprintf(stderr, "run_pyc_file: nested_scopes: %d\n",