]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
future.c: insert a cosmetic space.
authorTim Peters <tim.peters@gmail.com>
Mon, 16 Jul 2001 03:11:48 +0000 (03:11 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 16 Jul 2001 03:11:48 +0000 (03:11 +0000)
pythonrun.c, run_pyc_file():  repair semantic error wrt CO_GENERATOR vs
CO_GENERATOR_ALLOWED.

Python/future.c
Python/pythonrun.c

index f0960ae861c0b6b8154f407c0bf2b0db6e3de0f8..fc0d7482c9938ebe5db63f290d3d684ff5aea439 100644 (file)
@@ -32,7 +32,7 @@ future_check_features(PyFutureFeatures *ff, node *n, char *filename)
                if (strcmp(feature, FUTURE_NESTED_SCOPES) == 0) {
                        ff->ff_nested_scopes = 1;
                } else if (strcmp(feature, FUTURE_GENERATORS) == 0) {
-                       ff->ff_generators= 1;
+                       ff->ff_generators = 1;
                } else if (strcmp(feature, "braces") == 0) {
                        PyErr_SetString(PyExc_SyntaxError,
                                        "not a chance");
index d5705b97bae4e9034df63b061fe3985f880319aa..0412b7e70d052f22dd7e16e44efa939f55a5956c 100644 (file)
@@ -1076,7 +1076,7 @@ run_pyc_file(FILE *fp, char *filename, PyObject *globals, PyObject *locals,
        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",