From 22e1be952c8d05875948e3f682ff940fc5fe4394 Mon Sep 17 00:00:00 2001 From: Austin Blanton Date: Mon, 14 Sep 2015 17:10:32 -0400 Subject: [PATCH] Fix tuple/list type mismatch --- scripts/brpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/brpy/__init__.py b/scripts/brpy/__init__.py index 2c8932a..6cfd9f3 100644 --- a/scripts/brpy/__init__.py +++ b/scripts/brpy/__init__.py @@ -27,7 +27,7 @@ def _var_string_args_func(func, n, *args): ''' def call_func(one, two, *rest): arr_type = c_char_p*len(two) - func.argtypes = [c_int, arr_type] + _string_args(n) + args + func.argtypes = [c_int, arr_type] + _string_args(n) + list(args) arr = arr_type(*map(c_char_p, two)) return func(one, arr, *rest) return call_func -- libgit2 0.21.4