Skip to content

Commit 04a69b2

Browse files
committed
Apply formatter to review fixes
1 parent 8713a79 commit 04a69b2

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎src/blosc2/remote_file.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ def _fetch_chunk(self, index, cancel):
176176
if cancel is not None and cancel():
177177
raise InterruptedError("File operation cancelled")
178178
if len(data) + len(part) > MAX_COMPRESSED_CHUNK:
179-
raise ValueError(f"File chunk exceeds {MAX_COMPRESSED_CHUNK >> 20} MiB compressed limit")
179+
raise ValueError(
180+
f"File chunk exceeds {MAX_COMPRESSED_CHUNK >> 20} MiB compressed limit"
181+
)
180182
data.extend(part)
181183
finally:
182184
# One HTTP response is one request, regardless of fragmentation.

‎src/blosc2/schunk.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,12 @@ def _open_service_base(urlpath, roots, mode, offset, shared_cache, kwargs, auth_
28352835
if kwargs:
28362836
raise NotImplementedError(f"{', '.join(sorted(kwargs))} is unsupported for repositories")
28372837
return blosc2.RemoteRepository(
2838-
urlpath, roots, auth_token=auth_token, cache_dir=cache_dir, cache_policy=policy, max_cache_bytes=limit
2838+
urlpath,
2839+
roots,
2840+
auth_token=auth_token,
2841+
cache_dir=cache_dir,
2842+
cache_policy=policy,
2843+
max_cache_bytes=limit,
28392844
)
28402845

28412846

0 commit comments

Comments
 (0)