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

Compressor().decompress(ctext) must be bytes, not str #4110

Merged
merged 2 commits into from Nov 17, 2020
Merged

Compressor().decompress(ctext) must be bytes, not str #4110

merged 2 commits into from Nov 17, 2020

Conversation

cclauss
Copy link
Collaborator

@cclauss cclauss commented Nov 17, 2020

Closes #4096, #4085

Ensures decompress(self, ctext: bytes): because legacy Python does not support type hints. If ctext is not bytes then it is encoded.

Also, changed the tests to align with pytest discovery rules and also self-doctesting.

Technical

Testing

Screenshot

Inspect_Memcache

Stakeholders

Copy link
Member

@mekarpeles mekarpeles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mekarpeles mekarpeles merged commit b9d823f into internetarchive:master Nov 17, 2020
@cclauss cclauss deleted the decompress-ctext-must-be-bytes branch November 17, 2020 20:05
@cclauss cclauss added this to Done in Python3 Dec 17, 2020
@mekarpeles mekarpeles added python Pull requests that update Python code and removed Module: Python labels Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Staging On staging.openlibrary.org python Pull requests that update Python code
Projects
No open projects
Python3
  
Done
Development

Successfully merging this pull request may close these issues.

Cannot read memcached from /admin/inspect/memcache
2 participants