Skip to content

Commit

Permalink
Generate return statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
loewis committed Feb 28, 2006
1 parent ace990c commit b003f04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Parser/asdl_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def visitModule(self, mod):
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)
Expand Down

0 comments on commit b003f04

Please sign in to comment.