Skip to content

Commit

Permalink
Provide default _fetch_range implementation for File (#1732)
Browse files Browse the repository at this point in the history
Since this was not marked as NotImplemented
  • Loading branch information
martindurant authored Oct 30, 2024
1 parent 61b66b6 commit bb84b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ def _initiate_upload(self):

def _fetch_range(self, start, end):
"""Get the specified set of bytes from remote"""
raise NotImplementedError
return self.fs.cat_file(self.path, start=start, end=end)

def read(self, length=-1):
"""
Expand Down

0 comments on commit bb84b0c

Please sign in to comment.