diff options
author | Batuhan Taşkaya <batuhanosmantaskaya@gmail.com> | 2020-04-22 16:09:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 16:09:03 (GMT) |
commit | 4454057269b995341b04d13f0bf97f96080f27d0 (patch) | |
tree | fda84a982bce4372ad398afeac039f03b4d29d2c /Python/bltinmodule.c | |
parent | 9b498939009f49b8c772c89e8fc80efbfd8afcb5 (diff) | |
download | cpython-4454057269b995341b04d13f0bf97f96080f27d0.zip cpython-4454057269b995341b04d13f0bf97f96080f27d0.tar.gz cpython-4454057269b995341b04d13f0bf97f96080f27d0.tar.bz2 |
bpo-39562: Prevent collision of future and compiler flags (GH-19230)
The constant values of future flags in the __future__ module
is updated in order to prevent collision with compiler flags.
Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing
with CO_FUTURE_DIVISION.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index a9fc21f..22ee596 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -739,7 +739,7 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename, } if (flags & - ~(PyCF_MASK | PyCF_MASK_OBSOLETE | PyCF_DONT_IMPLY_DEDENT | PyCF_ONLY_AST | PyCF_TYPE_COMMENTS)) + ~(PyCF_MASK | PyCF_MASK_OBSOLETE | PyCF_COMPILE_MASK)) { PyErr_SetString(PyExc_ValueError, "compile(): unrecognised flags"); |