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

Fixing external package usage for Python 3.7 #1

Closed
wants to merge 3 commits into from

Conversation

LeonBirk
Copy link

When trying the example from the module docs page, I got an ImportError for the quote_plus name and an AttributeError. This commit fixes the ImportError by pointing the import to urllib.parse if applicable, where the quote_plus name is located from Python 3.4 upwards. The AttributeError is addressed by importing the JWT class from the jwt module, and passing an object of the JWT class as the self argument for JWT.decode() instead of the auth token. The auth token should be the second positional argument, corresponding to the "message" parameter of decode().

maltiverse and others added 2 commits December 12, 2018 23:45
When trying the example from the module docs page, I got an ImportError for the quote_plus name and an AttributeError. This commit fixes the ImportError by pointing the import to urllib.parse if applicable, where the quote_plus name is located from Python 3.4 upwards. The AttributeError is addressed by importing the JWT class from the jwt module, and passing an object of the JWT class as the self argument for JWT.decode() instead of the auth token. The auth token should be the second positional argument, corresponding to the "message" parameter of decode().
@dgilm
Copy link
Collaborator

dgilm commented Jul 6, 2023

I think this pull request no longer applies, the library has supported python3.7 for a long time (also for 3.8, 3.9, 3.10 and 3.11 at this moment).

@dgilm dgilm closed this Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants