From ea7d24a8e4316233abf5b8546c673f637e2332cf Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 5 Apr 2012 18:23:23 +0000 Subject: 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 --- qpid/cpp/bindings/qpid/python/python.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/bindings') 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",'') : -- cgit v1.2.1