summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-02-08 12:25:15 (GMT)
committerGitHub <noreply@github.com>2022-02-08 12:25:15 (GMT)
commit5b58db75291cfbb9b6785c9845824b3e2da01c1c (patch)
treee44eba71a28740851b8f88a4bddb29cef1ef7f7b /Include/cpython
parentcbdcae5ab90710e8d82c213f3798af1154670ff9 (diff)
downloadcpython-5b58db75291cfbb9b6785c9845824b3e2da01c1c.zip
cpython-5b58db75291cfbb9b6785c9845824b3e2da01c1c.tar.gz
cpython-5b58db75291cfbb9b6785c9845824b3e2da01c1c.tar.bz2
[3.10] bpo-46521: Fix codeop to use a new partial-input mode of the parser (GH-31010). (GH-31213)
(cherry picked from commit 69e10976b2e7682c6d57f4272932ebc19f8e8859) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/compile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/compile.h b/Include/cpython/compile.h
index a202c0b..518a376 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 */