Commit b003f041 authored by Martin v. Löwis's avatar Martin v. Löwis

Generate return statement.

parent ace990cf
......@@ -526,6 +526,7 @@ class ASTModuleVisitor(PickleVisitor):
self.emit("return;", 2)
# Value of version: "$Revision$"
self.emit('if (PyModule_AddStringConstant(m, "__version__", "%s") < 0)' % mod.version.value[12:-3], 1)
self.emit("return;", 2)
for dfn in mod.dfns:
self.visit(dfn)
self.emit("}", 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment