From c226e42d6dbcee4c0fbf89266d2dcb847387b87b Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Fri, 23 Nov 2007 14:06:57 +0000 Subject: [PATCH] Buf fixes --- pybindgen/typehandlers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybindgen/typehandlers/base.py b/pybindgen/typehandlers/base.py index d4e1137..bf768ef 100644 --- a/pybindgen/typehandlers/base.py +++ b/pybindgen/typehandlers/base.py @@ -702,7 +702,7 @@ class ForwardWrapperBase(object): self.return_value.convert_c_to_python(self) except NotImplementedError: raise CodeGenerationError( - 'python_to_c method of return value %s not implemented' + 'convert_c_to_python method of return value %s not implemented' % (self.return_value.ctype,)) self._before_return_hook() @@ -1030,7 +1030,7 @@ class TypeMatcher(object): if token in ['*', '&']: tokens[-1] = tokens[-1] + token continue - if token.startswith('::'): + if token.startswith('::') or token in ['<', '>']: tokens.append(token) else: tokens.append('::'+token)