-
Notifications
You must be signed in to change notification settings - Fork 122
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
Not working with Python < 2.6.5 #110
Comments
@yan12125 I'd like to try and fix this, but I don't have a good way to install <2.6.5. pyenv only goes down to 2.6.6. If you have suggestions, please let me know! |
If you're using Arch Linux, this PKGBUILD should work: https://github.com/yan12125/aur/tree/master/python264. |
@ionrock I suspect this is something that was broken in Python versions prior to 2.6.5 as it was fixed and documented by https://bugs.python.org/issue4978. The release notes for 2.6.5 document as that being fixed in 2.6.5rc1. Further versions 2.6.6 through 2.6.9 all contain various very important security fixes. I think you can support Python 2.6 for versions of 2.6 that aren't terribly broken and insecure. You might just want to say that the only version of 2.6 you want to support is 2.6.9 (or 2.6.6, 2.6.7, and 2.6.9) and that would be completely valid. |
@sigmavirus24 Ah hah! Thanks! So, I'm happy to support 2.6 versions supported by pyenv b/c I can test those, which means >=2.6.6. @yan12125 I'm going to go ahead and close this out. That said, if you find a fix and can submit a patch, I'm happy to review it. |
@ionrock the fix would be to take that dictionary stored in if (2, 6, 0) <= sys.version_info < (2, 6, 5):
kwargs = dict((k.encode('utf-8'), v) for (k, v) in cached["response"].items())
else:
kwargs = cached["response"] And then splat the
While that fix is easy enough, I don't think it's a net benefit to a great deal of people. For code golf purposes you could also do kwargs = cached["response"]
if (2, 6, 0) <= sys.version_info < (2, 6, 5):
kwargs = dict((k.encode('utf-8'), v) for (k, v) in kwargs.items()) |
With Python 2.6.4 and the following code snippet:
The following error occurs:
Related: pypa/pip#3074
The text was updated successfully, but these errors were encountered: