Skip to content

Commit

Permalink
Update dissect/util/stream.py
Browse files Browse the repository at this point in the history
Co-authored-by: pyrco <105293448+pyrco@users.noreply.github.com>
  • Loading branch information
Schamper and pyrco authored Nov 4, 2024
1 parent f0beb2c commit 43a0805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dissect/util/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def _read(self, offset: int, length: int) -> bytes:
def _readinto(self, offset: int, buf: memoryview) -> int:
"""Provide an aligned ``readinto`` implementation for this stream.
For backwards compatibility, ``AlignedStream`` provides a default ``_readinto`` implementation that
falls back on ``_read``. However, subclasses should override this method instead of ``_read``.
For backwards compatibility, ``AlignedStream`` provides a default ``_readinto`` implementation, implemented in `_readinto_fallback`, that
falls back on ``_read``. However, subclasses should override the ``_readinto`` method instead of ``_readinto_fallback``.
"""
return self._readinto_fallback(offset, buf)

Check warning on line 184 in dissect/util/stream.py

View check run for this annotation

Codecov / codecov/patch

dissect/util/stream.py#L184

Added line #L184 was not covered by tests

Expand Down

0 comments on commit 43a0805

Please sign in to comment.