summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-28 00:12:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-28 00:12:47 (GMT)
commiteae93b763cf84ef4fa44357190c7fdca3b8695fc (patch)
treec4be51df1b1dd568847f5802c6628935b195b9e2 /Parser/asdl_c.py
parenta7446e3438194e8abdfe75c2667b03a219e22a0b (diff)
downloadcpython-eae93b763cf84ef4fa44357190c7fdca3b8695fc.zip
cpython-eae93b763cf84ef4fa44357190c7fdca3b8695fc.tar.gz
cpython-eae93b763cf84ef4fa44357190c7fdca3b8695fc.tar.bz2
Add support for version field on Modules
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 4ac3f74..3f62af3 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -524,6 +524,7 @@ class ASTModuleVisitor(PickleVisitor):
self.emit('if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;', 1)
self.emit('if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)', 1)
self.emit("return;", 2)
+ self.emit("/* %s */" % mod.version.value, 1)
for dfn in mod.dfns:
self.visit(dfn)
self.emit("}", 0)