Skip to content

Commit 96d27b0

Browse files
emmatypingAA-Turner
andcommitted
Remove _READER_CLASS from ZstdFile
Co-authored-by: Adam Turner <[email protected]>
1 parent 9a50bff commit 96d27b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/compression/zstd/_zstdfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ class ZstdFile(_streams.BaseStream):
2626
supports the Buffer Protocol.
2727
"""
2828

29-
_READER_CLASS = _streams.DecompressReader
30-
3129
FLUSH_BLOCK = ZstdCompressor.FLUSH_BLOCK
3230
FLUSH_FRAME = ZstdCompressor.FLUSH_FRAME
3331

@@ -104,7 +102,7 @@ def __init__(
104102
self._mode = mode_code
105103

106104
if self._mode == _MODE_READ:
107-
raw = self._READER_CLASS(
105+
raw = _streams.DecompressReader(
108106
self._fp,
109107
ZstdDecompressor,
110108
trailing_error=ZstdError,

0 commit comments

Comments
 (0)