reorx / httpstat

curl statistics made simple
MIT License
5.99k stars 386 forks source link

Error when running on Linux/Python 2.6 #23

Closed GClover1985 closed 8 years ago

GClover1985 commented 8 years ago

python httpstat.py httpbin.org/get File "httpstat.py", line 110 grayscale = {(i - 232): make_color('38;5;' + str(i)) for i in xrange(232, 256)} ^ SyntaxError: invalid syntax

Redhat 6.5, Python 2.6

GClover1985 commented 8 years ago

image

reorx commented 8 years ago

Sorry for the late response. This is caused by your Python version, the dict comprehension {k:v for k in xxx} syntax is not supported by Python 2.6. I can just change this to another way but there are still a large number of 2.6 incompatible code in this project, I don't have that much time to make the code support for 2.6. Sincerely sorry :(