Skip to content

Commit bb84b0c

Browse files
authored
Provide default _fetch_range implementation for File (#1732)
Since this was not marked as NotImplemented
1 parent 61b66b6 commit bb84b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ def _initiate_upload(self):
19151915

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

19201920
def read(self, length=-1):
19211921
"""

0 commit comments

Comments
 (0)