diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-02-08 11:54:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 11:54:37 +0000 |
commit | 69e10976b2e7682c6d57f4272932ebc19f8e8859 (patch) | |
tree | 58a1716aab40f00e50fcd6e8abea7ae294e960c0 /Include/cpython/compile.h | |
parent | 25db2b361beb865192a3424830ddcb0ae4b17318 (diff) | |
download | cpython-git-69e10976b2e7682c6d57f4272932ebc19f8e8859.tar.gz |
bpo-46521: Fix codeop to use a new partial-input mode of the parser (GH-31010)
Diffstat (limited to 'Include/cpython/compile.h')
-rw-r--r-- | Include/cpython/compile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/compile.h b/Include/cpython/compile.h index a202c0b0e6..518a376499 100644 --- a/Include/cpython/compile.h +++ b/Include/cpython/compile.h @@ -18,8 +18,10 @@ #define PyCF_IGNORE_COOKIE 0x0800 #define PyCF_TYPE_COMMENTS 0x1000 #define PyCF_ALLOW_TOP_LEVEL_AWAIT 0x2000 +#define PyCF_ALLOW_INCOMPLETE_INPUT 0x4000 #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \ - PyCF_TYPE_COMMENTS | PyCF_DONT_IMPLY_DEDENT) + PyCF_TYPE_COMMENTS | PyCF_DONT_IMPLY_DEDENT | \ + PyCF_ALLOW_INCOMPLETE_INPUT) typedef struct { int cf_flags; /* bitmask of CO_xxx flags relevant to future */ |