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

Conversation

jdufresne
Copy link
Contributor

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.

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.
@jpadilla jpadilla added this to the v2.0.0 milestone Dec 16, 2020
@jpadilla jpadilla merged commit 696f65d into jpadilla:master Dec 16, 2020
@jdufresne jdufresne deleted the json-loads 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