The python-zstandard library previously lacked an open() method capable of opening zstd files in various modes (read/write binary/text). Such a function now exists, so util/file.py should replace the custom mode selection in zstd_open() with zstandard.open(). We should preserve the zstd_open() function for backward compatibility, and so a custom compressor can be passed in that has been configured to use multiple threads.
The
python-zstandard
library previously lacked anopen()
method capable of opening zstd files in various modes (read/write binary/text). Such a function now exists, so util/file.py should replace the custom mode selection inzstd_open()
withzstandard.open()
. We should preserve thezstd_open()
function for backward compatibility, and so a custom compressor can be passed in that has been configured to use multiple threads.