From 87c2f9d4b18baa08b66ea771975dba96760b188c Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 12 Oct 2008 13:04:07 +0100 Subject: [PATCH] Don't use 'callable' as parameter name, it is a python builtin function --- pybindgen/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pybindgen/utils.py b/pybindgen/utils.py index 7ad4f4f..2bbd5fd 100644 --- a/pybindgen/utils.py +++ b/pybindgen/utils.py @@ -115,16 +115,16 @@ class SkipWrapper(Exception): must simply be skipped. for internal pybindgen use""" -def call_with_error_handling(callable, args, kwargs, wrapper, +def call_with_error_handling(callback, args, kwargs, wrapper, exceptions_to_handle=(TypeConfigurationError, CodeGenerationError, NotSupportedError)): """for internal pybindgen use""" if settings.error_handler is None: - return callable(*args, **kwargs) + return callback(*args, **kwargs) else: try: - return callable(*args, **kwargs) + return callback(*args, **kwargs) except Exception, ex: if isinstance(ex, exceptions_to_handle): dummy1, dummy2, traceback = sys.exc_info()