From c99def7ea6c18522a51a64df9b24fa1195fd1aaa Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 12 Aug 2010 22:35:23 +0000 Subject: QPID-2793 - Python and Ruby bindings for the C++ QMFv2 API git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@985020 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qpid/python/python.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/bindings/qpid/python/python.i') diff --git a/cpp/bindings/qpid/python/python.i b/cpp/bindings/qpid/python/python.i index 690ce57d85..85dc745783 100644 --- a/cpp/bindings/qpid/python/python.i +++ b/cpp/bindings/qpid/python/python.i @@ -17,14 +17,16 @@ * under the License. */ -%module qpidw +%module cqpid %include "std_string.i" %include "../../swig_python_typemaps.i" /* Define the general-purpose exception handling */ %exception { try { + Py_BEGIN_ALLOW_THREADS $action + Py_END_ALLOW_THREADS } catch (qpid::messaging::MessagingException& mex) { PyErr_SetString(PyExc_RuntimeError, mex.what()); -- cgit v1.2.1