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 Unicode decoding before json.loads() #542

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Remove unnecessary Unicode decoding before json.loads() #542

merged 1 commit into from
Dec 16, 2020

Commits on Dec 16, 2020

  1. Remove unnecessary Unicode decoding before json.loads()

    Since Python 3.6, json.loads() accepts both Unicode and byte strings.
    
    https://docs.python.org/3/library/json.html#json.loads
    
    > Changed in version 3.6: s can now be of type bytes or bytearray. The
    > input encoding should be UTF-8, UTF-16 or UTF-32.
    jdufresne committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    acc8254 View commit details
    Browse the repository at this point in the history