Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on Linux/Python 2.6 #23

Closed
GClover1985 opened this issue Oct 26, 2016 · 2 comments
Closed

Error when running on Linux/Python 2.6 #23

GClover1985 opened this issue Oct 26, 2016 · 2 comments
Labels

Comments

@GClover1985
Copy link

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
Copy link
Author

image

@reorx
Copy link
Owner

reorx commented Oct 28, 2016

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 :(

@reorx reorx added the wontfix label Oct 28, 2016
@reorx reorx closed this as completed Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants