Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent b1ce4fb commit 0d311e4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/fsspec_xrootd/xrootd.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,12 +997,7 @@ def write(self, data):
raise ValueError("I/O operation on closed file.")
if self.forced:
raise ValueError("This file has been force-flushed, can only close")
status, _n = self._myFile.write(
data,
self.loc,
len(data),
timeout=self.timeout
)
status, _n = self._myFile.write(data, self.loc, len(data), timeout=self.timeout)
self.loc += len(data)
self.size = max(self.size, self.loc)
if not status.ok:
Expand Down Expand Up @@ -1031,4 +1026,4 @@ def read(self, length=-1):
out = self.cache._fetch(self.loc, self.loc + length)

self.loc += len(out)
return out
return out

0 comments on commit 0d311e4

Please sign in to comment.