Skip to content

Commit 10807cd

Browse files
committed
lint
1 parent a57fc16 commit 10807cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

kerchunk/hdf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@ def __init__(
109109
fs, path = fsspec.core.url_to_fs(h5f, **(storage_options or {}))
110110
self.input_file = self._closers.enter_context(fs.open(path, "rb"))
111111
url = h5f
112-
self._h5f = self._closers.enter_context(h5py.File(self.input_file, mode="r"))
112+
self._h5f = self._closers.enter_context(
113+
h5py.File(self.input_file, mode="r")
114+
)
113115
elif isinstance(h5f, io.IOBase):
114116
self.input_file = h5f
115-
self._h5f = self._closers.enter_context(h5py.File(self.input_file, mode="r"))
117+
self._h5f = self._closers.enter_context(
118+
h5py.File(self.input_file, mode="r")
119+
)
116120
elif isinstance(h5f, (h5py.File, h5py.Group)):
117121
# assume h5py object (File or group/dataset)
118122
self._h5f = h5f

0 commit comments

Comments
 (0)