From 8639674ff9d42b1ee70799034394875eba223c11 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/qpid@1309991 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qpid/python/python.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp') 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",'') : -- cgit v1.2.1