mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Generate return statement.
This commit is contained in:
parent
ace990cf5a
commit
b003f041bb
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue