This repository was archived by the owner on Aug 8, 2025. It is now read-only.
allow binary data in OAuth1Session.request#201
Open
githubkusi wants to merge 1 commit intolitl:masterfrom
Open
allow binary data in OAuth1Session.request#201githubkusi wants to merge 1 commit intolitl:masterfrom
githubkusi wants to merge 1 commit intolitl:masterfrom
Conversation
In Python 2, binary data was handled just fine, because type bytes was
just a wrapper around str
>>> data = bytes(1)
>>> 'a' in data
False
In Python 3, this gives an error
>>> data = bytes(1)
>>> 'a' in data
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' does not support the buffer interface
Example client code: Python 3 port of
https://github.com/marekrei/smuploader
githubkusi
pushed a commit
to githubkusi/digikam2smugmug
that referenced
this pull request
Jul 19, 2022
rauth upstream seems dead, use fork which includes an important fix litl/rauth#201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Python 2, binary data was handled just fine, because type bytes was
just a wrapper around str
In Python 3, this gives an error
Example client code: Python 3 port of
https://github.com/marekrei/smuploader