From 6016a461db8770b0fa58717df5843efbc81f4a76 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 6 Jan 2008 14:04:04 +0000 Subject: [PATCH] fix bad assertion --- pybindgen/typehandlers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/typehandlers/base.py b/pybindgen/typehandlers/base.py index c55af3f..8adc5a0 100644 --- a/pybindgen/typehandlers/base.py +++ b/pybindgen/typehandlers/base.py @@ -546,7 +546,7 @@ class ReverseWrapperBase(object): wrapper_name -- C/C++ identifier of the function/method to generate decl_modifiers -- list of C/C++ declaration modifiers, e.g. 'static' """ - assert isinstance(decl_modifiers, list) + assert isinstance(decl_modifiers, (list, tuple)) assert all([isinstance(mod, str) for mod in decl_modifiers]) self.declarations.declare_variable('PyObject*', 'py_retval')