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 | 8639674ff9d42b1ee70799034394875eba223c11 (patch) | |
tree | f70a92b705b30d1e77330f5dbf42234fd8a01c3b /cpp | |
parent | ebd7c9fcfe136d3575e1148d447e1ba75720fbae (diff) | |
download | qpid-python-8639674ff9d42b1ee70799034394875eba223c11.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/qpid@1309991 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/bindings/qpid/python/python.i | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/bindings/qpid/python/python.i b/cpp/bindings/qpid/python/python.i index 9d45bf54ee..48d8855d1a 100644 --- a/cpp/bindings/qpid/python/python.i +++ b/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",'') : |