python/lib/gen_code.py: fix format string
authorPaul Brossier <piem@piem.org>
Tue, 10 May 2016 17:53:17 +0000 (19:53 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 10 May 2016 17:53:17 +0000 (19:53 +0200)
python/lib/gen_code.py

index 6fc8e2a..f235d65 100644 (file)
@@ -374,7 +374,7 @@ Py_{shortname}_do  (Py_{shortname} * self, PyObject * args)
         #print output_params
         for input_param in input_params:
             out += """
-    PyObject *py_{0};""".format(input_param['name'], input_param['type'])
+    PyObject *py_{0};""".format(input_param['name'])
         refs = ", ".join(["&py_%s" % p['name'] for p in input_params])
         pyparamtypes = "".join([pyargparse_chars[p['type']] for p in input_params])
         out += """