summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/python/python.i
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-08-12 22:35:23 +0000
committerTed Ross <tross@apache.org>2010-08-12 22:35:23 +0000
commit3826c9172eef3a90ff91df3bffcb26f39d413528 (patch)
treeb9546b74e7971d06a9dd73bf0164a59ec78f3eb8 /cpp/bindings/qpid/python/python.i
parent009af716ca31bf3ab67fb4b264415006cc14f011 (diff)
downloadqpid-python-3826c9172eef3a90ff91df3bffcb26f39d413528.tar.gz
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
Diffstat (limited to 'cpp/bindings/qpid/python/python.i')
-rw-r--r--cpp/bindings/qpid/python/python.i4
1 files changed, 3 insertions, 1 deletions
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());