Use pathclass.Path.open.
This commit is contained in:
parent
97511401b6
commit
034784015e
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ def read_filebytes(path, range_min=None, range_max=None):
|
|||
range_span = range_max - range_min
|
||||
|
||||
#print('read span', range_min, range_max, range_span)
|
||||
f = open(path.absolute_path, 'rb')
|
||||
f = path.open('rb')
|
||||
f.seek(range_min)
|
||||
sent_amount = 0
|
||||
while sent_amount < range_span:
|
||||
|
|
Loading…
Reference in a new issue