Skip to content

gh-132983: Style improvements for compression.zstd #133547

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

emmatyping
Copy link
Member

@emmatyping emmatyping commented May 7, 2025

Mostly just make both files consistently use single vs double quotes and add spacing as suggested in PEP 8. Also add a missing space in a multi-line string.

Mostly just make both files consistently use single vs double quotes.
Also add a missing space in a multi-line string.
pythonGH-133479 removed the logic to check for libzstd outside of pkg-config.
This commit adds that logic back with a check for the version so that
users can provide their own libzstd. This is to bring parity with lzma,
bz2, and zlib detection.
@emmatyping emmatyping requested review from AA-Turner and gpshead May 7, 2025 03:23
Copy link
Contributor

@Rogdham Rogdham left a comment

Choose a reason for hiding this comment

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

I am confirming you did not miss any ', except maybe in the docstring of ZstdFile.readline which mentions b''

@emmatyping
Copy link
Member Author

I am confirming you did not miss any ', except maybe in the docstring of ZstdFile.readline which mentions b''

Yeah I left that one intentionally as docs seem to use b'' when talking about empty bytes objects.

@emmatyping
Copy link
Member Author

@AA-Turner @gpshead pinging just to follow up on the request for review on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants