diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-28 00:12:47 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-28 00:12:47 (GMT) |
commit | eae93b763cf84ef4fa44357190c7fdca3b8695fc (patch) | |
tree | c4be51df1b1dd568847f5802c6628935b195b9e2 /Parser/asdl_c.py | |
parent | a7446e3438194e8abdfe75c2667b03a219e22a0b (diff) | |
download | cpython-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-x | Parser/asdl_c.py | 1 |
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) |