aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 8047b1259c5..60dd121d60b 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -12659,6 +12659,9 @@ astmodule_exec(PyObject *m)
if (PyModule_AddIntMacro(m, PyCF_TYPE_COMMENTS) < 0) {
return -1;
}
+ if (PyModule_AddIntMacro(m, PyCF_OPTIMIZED_AST) < 0) {
+ return -1;
+ }
if (PyModule_AddObjectRef(m, "mod", state->mod_type) < 0) {
return -1;
}