hatchi/python-novaclient — Issue #1: Python 2.4 doesn't support conditional expressions
Author: hatchi
Created: 2011-11-09 07:31:59+00:00
State: open

Python 2.4 doesn't support PEP 308: Conditional Expressions.

When installing, SyntaxError occurs.

Installing collected packages: python-novaclient, httplib2, argparse, prettytabn
Found existing installation: python-novaclient 2.6.7
Uninstalling python-novaclient:
Successfully uninstalled python-novaclient
Running setup.py install for python-novaclient
File "/usr/lib/python2.4/site-packages/novaclient/v1_1/servers.py", line 4
query_string = "?%s" % urllib.urlencode(qparams) if qparams else ""
^
SyntaxError: invalid syntax
File "/usr/lib/python2.4/site-packages/novaclient/v1_1/shell.py", line 894
items = (obj if isinstance(obj, dict) else obj._info).items()
^
SyntaxError: invalid syntax
File "/usr/lib/python2.4/site-packages/novaclient/v1_0/servers.py", line 5
query_string = "?%s" % urllib.urlencode(qparams) if qparams else ""
^
SyntaxError: invalid syntax