python/lib/gen_code.py: kwargs last for py2.x
authorPaul Brossier <piem@piem.org>
Wed, 22 Aug 2018 13:42:37 +0000 (15:42 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 22 Aug 2018 13:42:37 +0000 (15:42 +0200)
python/lib/gen_code.py

index 92de2ad..7527fe9 100644 (file)
@@ -386,7 +386,7 @@ Py_{shortname}_del  (Py_{shortname} * self, PyObject * unused)
 // do {shortname}
 static PyObject*
 Pyaubio_{shortname}_{method}  (Py_{shortname} * self, PyObject * args)
-{{""".format(**self.__dict__, method = method)
+{{""".format(method = method, **self.__dict__)
         input_params = self.do_inputs
         output_params = self.do_outputs
         #print input_params