Generate return statement.

This commit is contained in:
Martin v. Löwis 2006-02-28 00:37:04 +00:00
parent ace990cf5a
commit b003f041bb
1 changed files with 1 additions and 0 deletions

View File

@ -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)