Skip to content

Commit a48e335

Browse files
Get rid of .format() calls
1 parent cde60c9 commit a48e335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitshuffle/h5.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if not sys.platform.startswith('win'):
8787
break
8888

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

9292

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

140140
if isinstance(dtype, h5py.Datatype):

0 commit comments

Comments
 (0)