diff options
author | Ted Ross <tross@apache.org> | 2012-04-05 18:23:23 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2012-04-05 18:23:23 +0000 |
commit | ea7d24a8e4316233abf5b8546c673f637e2332cf (patch) | |
tree | c2951f48d70abf97a0629ebd308ef31eaa17cd2b | |
parent | 8efe471d6ec7327a0d7971854ff20b09167b241d (diff) | |
download | qpid-python-ea7d24a8e4316233abf5b8546c673f637e2332cf.tar.gz |
QPID-3937 - Wrapped Python uses syntax that is incompatible with older Python interpreters
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1309991 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",'') : |