summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-28 00:37:04 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-28 00:37:04 (GMT)
commitb003f041bbc6c8d2d8a3ecc80ece9441222b213b (patch)
tree1f87e8cdcf099d000252da6cc888b8d2ee824d20 /Parser/asdl_c.py
parentace990cf5afa205eba9a637bdf70c4d64ddb73ce (diff)
downloadcpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.zip
cpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.tar.gz
cpython-b003f041bbc6c8d2d8a3ecc80ece9441222b213b.tar.bz2
Generate return statement.
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py1
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)