Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kephale committed May 31, 2024
1 parent 6b3abf7 commit 502e338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshfs/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ async def _pipe_file(self, path, data, chunksize=50 * 2**20, **kwargs):
await self._makedirs(self._parent(path), exist_ok=True)

async with self._pool.get() as channel:
async with channel.open(path, 'wb') as f:
async with channel.open(path, "wb") as f:
for i in range(0, len(data), chunksize):
chunk = data[i:i + chunksize]
chunk = data[i : i + chunksize]
await f.write(chunk)
await f.flush()

Expand Down

0 comments on commit 502e338

Please sign in to comment.