forked from datalad/datalad-next
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use run-context-manager in SshUrlOperations._stat
This commit uses the run-context-manager in SshUrlOperations._stat. It also adds and uses a new data processor, called "pattern_border_processor", that ensures that a given pattern is completely contained within a chunk, if it exists in the stream. This makes it easier to search for patterns and fixes a potential bug in `_stat`, that was triggered when data chunks were shorter than the pattern `b'\1\2\3`.
- Loading branch information
1 parent
ba21054
commit ba486bc
Showing
2 changed files
with
44 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters