Skip to content

Commit 55133ce

Browse files
authored
black formatting
1 parent 44d15cc commit 55133ce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

neo/rawio/brainvisionrawio.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ def _ensure_filename(self, filename, kind, entry_name):
254254
self.logger.warning(
255255
f"The {kind} file {filename} was not found, but found a file whose "
256256
f"prefix matched the .vhdr ({os.path.basename(alt_name)}). Using "
257-
f"this file instead.")
257+
f"this file instead."
258+
)
258259
filename = alt_name
259260
else:
260261
# we neither found the file referenced in the .vhdr file nor a file of
@@ -267,18 +268,20 @@ def _ensure_filename(self, filename, kind, entry_name):
267268
alt_bname = os.path.basename(alt_name)
268269
if alt_bname != referenced_bname:
269270
# this is only needed when the two candidate file names differ
270-
detail = (f" is named either as per the {entry_name}={referenced_bname} "
271-
f"line in the .vhdr file, or")
271+
detail = (
272+
f" is named either as per the {entry_name}={referenced_bname} " f"line in the .vhdr file, or"
273+
)
272274
else:
273275
# we omit it if we can to make it less confusing
274276
detail = ""
275277
self.logger.error(
276-
f"Did not find the {kind} file associated with .vhdr (header) "
278+
f"Did not find the {kind} file associated with .vhdr (header) "
277279
f"file {header_bname!r} in folder {header_dname!r}.\n Please make "
278280
f"sure the file{detail} is named the same way as the .vhdr file, but "
279281
f"ending in {ext} (i.e. {alt_bname}).\n The import will likely fail, "
280282
f"but if it goes through, you can ignore this message (the check "
281-
f"can misfire on networked file systems).")
283+
f"can misfire on networked file systems)."
284+
)
282285
return filename
283286

284287

0 commit comments

Comments
 (0)