-
Notifications
You must be signed in to change notification settings - Fork 63
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
Replace _to_bytes usages #94
Comments
Not any more - I haven't developed Dropping support for Python 2.7 is planned (#86) and was planning on doing that a tvdb_api v4 I suspect there is a better way to be using It seems like So I think the best approach is:
By "slightly accelerated" I mainly mean the changes in the 3.2 milestone could easily get shuffled into the 4.0 release |
The missing support for |
@dbr Later versions of requests-cache add some other features that would be relevant to you. In 0.8+, you can pass a list of specific headers to match instead of just session = CachedSession(match_headers=['Accept-Language']) And if the builtin options aren't enough, it also lets you pass a callback instead of patching out session = CachedSession(key_fn=my_custom_key_function) More docs on request matching can be found here: https://requests-cache.readthedocs.io/en/stable/user_guide/matching.html Also, the upcoming version of requests-cache will ignore common authentication headers by default, and also respect That doesn't help you right now, but if/when you get around to dropping support for older python versions, you are more than welcome to ping me for questions related to requests-cache, or create an issue here. |
As a fix to #92 , #93 added a block to the requests-cache version used (as 0.6.0 removed
_to_bytes
). I believe it was never meant to be used by external users, and should be quite straightforward to replace.I'm opening this issue so this doesn't slip by unattended, as it's causing issues in packaging (on distributions that only have one version of a specific package, e.g. requests-cache).
While I'd be happy to contribute a fix, I'm not familiar with Python so I have a question. According to the readme, this repo officially supports Python 2.7 and onward, but I was under the assumption that Python 2 had been EOL'd over a year ago. Is Python 2 compatibility still something desirable?
_to_bytes
was removed from requests-cache in an effort to clean-up the code at the expense of Python 2 compatibility, so I guess upgrading the requests-cache version comes at the cost of said compatibility already.The text was updated successfully, but these errors were encountered: