[Soap-Python] soaplib-0.8.1 on github
Jamie Kirkpatrick
jkp at kirkconsulting.co.uk
Fri Mar 5 13:16:57 CET 2010
Have you checked the latest source code in the git repo? It looks to
me that this is already fixed...
Let me know.
Thanks
On 3 March 2010 22:15, Randolph Reitz <rreitz at fnal.gov> wrote:
> The soaplib github page (http://wiki.github.com/jkp/soaplib/) list Prerequisites as python >=2.4.
>
> There are 2 lines in xml.py with conditional expression syntax that was introduced in Python 2.5 (PEP 308). Can you 'fix' these 2 lines so that soaplib is indeed compatible with python 2.4?
>
> Here are the lines (and my changes)...
>
> [nimi at nimisrv ~]$ diff ~/prod_2010_03_03/djroot/soaplib/xml.py /usr/lib/python2.4/site-packages/soaplib-0.8.1-py2.4.egg/soaplib
> 36c36
> < ns = self.nsmap.get(key,'')
> ---
>> ns = self.nsmap[key] if key in self.nsmap else ''
> 64,68c64
> < if default_ns is not None:
> < namespace_map = { None: default_ns }
> < else :
> < namespace_map = {}
> <
> ---
>> namespace_map = { None: default_ns } if default_ns is not None else {}
>
>
> My server is stuck with python 2.4.
>
> Thanks,
> Randy
>
>
--
Jamie Kirkpatrick
07818 422311
More information about the Soap
mailing list