summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-05-01 14:18:27 (GMT)
committerGitHub <noreply@github.com>2020-05-01 14:18:27 (GMT)
commit5055c274c6e4f2bb8025910dedf0ff89f4bdd170 (patch)
tree0e8ec7fff9958bd3afcabb38f968fd26eba9dd5f /Python
parent95e208dce505c542b8e4f8f42c57e6d4793b6895 (diff)
downloadcpython-5055c274c6e4f2bb8025910dedf0ff89f4bdd170.zip
cpython-5055c274c6e4f2bb8025910dedf0ff89f4bdd170.tar.gz
cpython-5055c274c6e4f2bb8025910dedf0ff89f4bdd170.tar.bz2
[3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) (GH-19835)
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.. (cherry picked from commit 4454057269b995341b04d13f0bf97f96080f27d0) Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 33f9690..fe22bbd 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -738,7 +738,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");