-
Notifications
You must be signed in to change notification settings - Fork 37
Feature/py3k #2
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
Feature/py3k #2
Conversation
fixes py3 and makes precedence more explicit
A 1000 integer array isn't big enough to cause problems
|
Hi @bwhmather, thanks for the contribution. I'm sure making this 2/3 compatible had some headaches associated with it :) Unfortunately, things are rather slow at the moment during the holiday break, but we'll definitely do a thorough review early in the new year. |
|
Thank you and no problem. I'm also working on another branch that replaces the JWA object with separate lookup functions for different algorithms that will hopefully be worth looking at when you have time. Merry Christmas |
|
Hi @bwhmather thanks for your work on this. I've opened a new PR #15 which provides Python 3 support using six. |
Have mostly adapted the jose package to work with python 3 (in addition to python 2).
Getting tests running with multiple versions of python has necessitated rearanging some of the files but I believe that I have managed to avoid breaking the current api.
There is one remaining problem which is that I can't figure out what format the key for hmac algorithms should be in and therefore whether, and where, it should be encoded as bytes or unicode. Will have another look at fixing it now. This problem does not affect python 2 however.
I do have to say that the excellent test suite has made this really quite easy. Thank you.