Skip to content

Commit

Permalink
Get rid of .format() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 31, 2024
1 parent cde60c9 commit a614659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitshuffle/h5.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if not sys.platform.startswith('win'):
break

if success == -1:
raise RuntimeError("Failed to load all HDF5 symbols using these libs: {}".format(libs))
raise RuntimeError(f"Failed to load all HDF5 symbols using these libs: {libs}")


def register_h5_filter():
Expand Down Expand Up @@ -134,7 +134,7 @@ def create_dataset(parent, name, shape, dtype, chunks=None, maxshape=None,
for i, j in zip(tmp_shape, chunks) if i is not None])).any()
if isinstance(chunks, tuple) and chunks_larger:
errmsg = ("Chunk shape must not be greater than data shape in any "
"dimension. {} is not compatible with {}".format(chunks, shape))
f"{chunks} is not compatible with {shape}")
raise ValueError(errmsg)

if isinstance(dtype, h5py.Datatype):
Expand Down

0 comments on commit a614659

Please sign in to comment.