Pyrhon2.5 to 2.4 conversion
steve at REMOVE-THIS-cybersource.com.au
Sun Feb 28 03:02:58 CET 2010
On Sat, 27 Feb 2010 17:41:09 -0800, tarekamr at gmail.com wrote:
> I am currently using oauth2.py library, and it works fine on one of my
> PC's (python2.5), but later on when I tried to use it with python2.4 the
> following line (line 332 in
> showed a syntax error
> items = [(k, v if type(v) != ListType else sorted(v)) for k,v in
> sorted(self.items()) if k != 'oauth_signature']
> So it there a way to convert this line to a python2.4 compliant syntax.
You would be better off installing Python2.5 on the PC rather than trying
to backport the library to 2.4. There could be thousands of changes
needed to backport the library.
More information about the Python-list