SyntaxError: invalid syntax
wuyish opened this issue · 2 comments
wuyish commented
os:CentOS release 5.8 (Final) Linux 2.6.18-308.16.1.el5 x86_64
and urwid-1.1.1,Speedometer 2.8
python.x86_64 2.4.3-46.el5_8.2
when i run "speedometer -r eth0":
speedometer -r eth0
File "/usr/local/bin/speedometer", line 112
n = n * granularity + (granularity if r else 0)
^
SyntaxError: invalid syntax
wardi commented
Hello wuyish,
Yes, python2.4 doesn't have the ternary if syntax. I would take a patch that split that line into a plain if statement if you'd like to write it.
Note that you are using a version of Python from almost 8 years ago...
Deleted user commented
Hello, old python version is unsupported, we now require python3.
Close now, thanks.