diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-28 00:37:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-28 00:37:04 (GMT) |
commit | b003f041bbc6c8d2d8a3ecc80ece9441222b213b (patch) | |
tree | 1f87e8cdcf099d000252da6cc888b8d2ee824d20 /Parser/asdl_c.py | |
parent | ace990cf5afa205eba9a637bdf70c4d64ddb73ce (diff) | |
download | cpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.zip cpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.tar.gz cpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.tar.bz2 |
Generate return statement.
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 b55b6eb..1f63df9 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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) |