summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Python/vfunc.tmpl
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-02 11:07:42 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-11 12:34:52 -0500
commitff80c6d88a28b26576508ab891c9b9da0b13ac49 (patch)
tree3ecfcda8e893aaf19a279edd36323a42999570cd /giscanner/doctemplates/Python/vfunc.tmpl
parent3818b98a9785026c8aab2cf07e35855caf32a768 (diff)
downloadgobject-introspection-ff80c6d88a28b26576508ab891c9b9da0b13ac49.tar.gz
doctool: Don't use zip(range(L))
Instead, remove it entirely (since we don't need the index) or instead use enumerate().
Diffstat (limited to 'giscanner/doctemplates/Python/vfunc.tmpl')
-rw-r--r--giscanner/doctemplates/Python/vfunc.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/doctemplates/Python/vfunc.tmpl b/giscanner/doctemplates/Python/vfunc.tmpl
index 65f856a5..6f7e6920 100644
--- a/giscanner/doctemplates/Python/vfunc.tmpl
+++ b/giscanner/doctemplates/Python/vfunc.tmpl
@@ -1,7 +1,7 @@
<%inherit file="/base.tmpl"/>
<%block name="synopsis">
<synopsis><code mime="text/x-python">
-% if len(node.parameters) != 0:
+% if node.parameters:
@accepts(\
${', '.join((formatter.format_type(arg.type) for arg in node.parameters))}\
)
@@ -16,7 +16,7 @@ ${', '.join((arg.argname for arg in node.parameters))}\
<%block name="details">
% if node.parameters or node.retval:
<dl>
-% for arg, ix in zip(node.parameters, range(len(node.parameters))):
+% for arg in node.parameters:
<dt><p>${arg.argname} :</p></dt>
<dd>${formatter.format(node, arg.doc)}</dd>
% endfor