summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 1403143..3218b60 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -2948,6 +2948,8 @@ init_ast(void)
if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
return;
+ if (PyModule_AddStringConstant(m, "__version__", "42635") < 0)
+ return;
if(PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
if(PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
return;