diff options
author | Ted Ross <tross@apache.org> | 2012-04-10 15:47:04 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2012-04-10 15:47:04 +0000 |
commit | 1302697863c87511ca44831d24508cf0b87ce90e (patch) | |
tree | ae10f17c106a8d623b74353616fa2a443b43877b | |
parent | 9edc62cd18ff3d3892a9090c4afb10f78e98a74a (diff) | |
download | qpid-python-1302697863c87511ca44831d24508cf0b87ce90e.tar.gz |
QPID-3937 - Back-ported fix from trunk into 0.16.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.16@1311798 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/bindings/qpid/python/python.i | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/bindings/qpid/python/python.i b/qpid/cpp/bindings/qpid/python/python.i index 9d45bf54ee..48d8855d1a 100644 --- a/qpid/cpp/bindings/qpid/python/python.i +++ b/qpid/cpp/bindings/qpid/python/python.i @@ -132,7 +132,10 @@ static PyObject* pTransportFailure; # equivalent in C++, so we will translate them to sasl_mechanism # when possible. def __init__(self, url=None, **options): - args = [url] if url else [] + if url: + args = [url] + else: + args = [] if options : if "sasl_mechanisms" in options : if ' ' in options.get("sasl_mechanisms",'') : |