From 9275eb01ef0bcdcefb46eb936d6a85c921e92e9f Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 3 Jun 2007 22:31:34 +0100 Subject: [PATCH] make the void return type not return an explicit Py_None, to prevent a bug hwere None is being returned as first element of tuple when there are out/inout parameters --- pybindgen/typehandlers/voidtype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/typehandlers/voidtype.py b/pybindgen/typehandlers/voidtype.py index 7bd2851..76ceb84 100644 --- a/pybindgen/typehandlers/voidtype.py +++ b/pybindgen/typehandlers/voidtype.py @@ -15,4 +15,4 @@ class VoidReturn(ReturnValue): wrapper.parse_params.add_parameter("", [], prepend=True) def convert_c_to_python(self, wrapper): - wrapper.build_params.add_parameter("O", ['Py_None'], prepend=True) + pass