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

Remove unnecessary force_bytes() calls priot to base64url_decode() #543

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Remove unnecessary force_bytes() calls priot to base64url_decode() #543

merged 1 commit into from
Dec 16, 2020

Conversation

jdufresne
Copy link
Contributor

The first line of base64url_decode() is:

if isinstance(input, str):
    input = input.encode("ascii")

It therefore accepts either str or bytes. Don't bother coercing to bytes
at the call site.

The first line of base64url_decode() is:

    if isinstance(input, str):
        input = input.encode("ascii")

It therefore accepts either str or bytes. Don't bother coercing to bytes
at the call site.
@jpadilla jpadilla added this to the v2.0.0 milestone Dec 16, 2020
@jpadilla jpadilla merged commit 529647a into jpadilla:master Dec 16, 2020
@jdufresne jdufresne deleted the base64-decode branch December 18, 2020 00:50
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.

None yet

2 participants