Skip to content

fix zstd decompression for python 3.13+ stdlib compression.zstd#821

Merged
furlongm merged 6 commits intomainfrom
zstd-compat
May 6, 2026
Merged

fix zstd decompression for python 3.13+ stdlib compression.zstd#821
furlongm merged 6 commits intomainfrom
zstd-compat

Conversation

@furlongm
Copy link
Copy Markdown
Owner

@furlongm furlongm commented May 1, 2026

compression.zstd uses decompress() directly, while python-zstandard uses ZstdDecompressor().stream_reader()

Use hasattr to pick the right api at call time.

fixes: #820

@furlongm furlongm force-pushed the zstd-compat branch 2 times, most recently from 46d77c1 to 996f924 Compare May 5, 2026 02:07
furlongm added 6 commits May 4, 2026 22:33
compression.zstd uses decompress() directly, while python-zstandard
uses ZstdDecompressor().stream_reader(). use hasattr to pick the
right api at call time.
EPEL 10.1 has errata with synopsis text exceeding 255 characters,
causing psycopg2.errors.StringDataRightTruncation crash in
get_or_create_erratum(). TextField removes the length constraint.
@furlongm furlongm merged commit c5618b0 into main May 6, 2026
10 checks passed
@furlongm furlongm deleted the zstd-compat branch May 6, 2026 14:20
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.

Issue when processing RHEL10.1 EPEL mirrors (and some others?)

1 participant