summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-16 03:11:48 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-16 03:11:48 (GMT)
commit51d76f1f7532d9f55e31dbf3fd4dc26be42a839a (patch)
tree9c758a2b4b361a4fe5ae9ccfe22f954fe52cbe2d /Python/pythonrun.c
parent5ba58662817b708a453020f0425fe4747ea6d5cb (diff)
downloadcpython-51d76f1f7532d9f55e31dbf3fd4dc26be42a839a.zip
cpython-51d76f1f7532d9f55e31dbf3fd4dc26be42a839a.tar.gz
cpython-51d76f1f7532d9f55e31dbf3fd4dc26be42a839a.tar.bz2
future.c: insert a cosmetic space.
pythonrun.c, run_pyc_file(): repair semantic error wrt CO_GENERATOR vs CO_GENERATOR_ALLOWED.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index d5705b9..0412b7e 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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",
(#2902)Ville Skyttä2017-08-031-4/+4 * bpo-31067: test_subprocess calls reap_children() (#2931)Victor Stinner2017-07-281-0/+2 * bpo-30764: test_subprocess uses SuppressCrashReport (#2405)Victor Stinner2017-06-261-19/+22 * bpo-30730: Prevent environment variables injection in subprocess on Windows. ...Serhiy Storchaka2017-06-231-0/+40 * bpo-28180: Implementation for PEP 538 (#659)Nick Coghlan2017-06-111-1/+2 * subprocess test_empty_env typo fix. (#1877)Gregory P. Smith2017-05-301-3/+3 * bpo-12383: Refactor subprocess test_empty_env (#1874)Gregory P. Smith2017-05-301-12/+20 * bpo-29335 - apply suggested test_subprocess simplifications from haypo and Za...Gregory P. Smith2017-05-231-9/+5 * bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110)Serhiy Storchaka2017-04-191-1/+12 * bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathL...Sayan Chowdhury2017-02-261-0/+10 * bpo-26128: Added __init__to subprocess.STARTUPINFO (#171)Subhendu Ghosh2017-02-251-0/+16 * Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-231-1/+6 |\ | * Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-231-1/+6 | |\ | | * Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-231-1/+6 * | | typo fix, extra '.' on MacOS :)Gregory P. Smith2017-01-231-1/+1 |\ \ \ | |/ / | * | typo fix, extra '.' on MacOS :)Gregory P. Smith2017-01-231-1/+1 | |\ \ | | |/ | | * typo fix, extra '.' :)Gregory P. Smith2017-01-231-1/+1 * | | Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-231-0/+41 |\ \ \ | |/ / | * | Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-231-0/+41 | |\ \ | | |/ | | * Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-231-0/+41 | | * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1 * | | Issue #20572: Remove the subprocess.Popen.wait endtime parameter.Gregory P. Smith2016-11-211-14/+0 |\ \ \ | |/ / | * | Issue #20572: The subprocess.Popen.wait method's undocumented endtimeGregory P. Smith2016-11-211-14/+13 |/ / * | Issue #28662: Catch PermissionError in tests when spawning a non existent pro...Xavier de Gaye2016-11-14