Skip to content

Commit 1af655a

Browse files
authored
Update nibabel/streamlines/__init__.py
1 parent 56542ac commit 1af655a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/streamlines/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def detect_format(fileobj):
5757
except OSError:
5858
pass
5959

60-
if isinstance(fileobj, (str, Path)):
60+
if isinstance(fileobj, (str, os.PathLike)):
6161
_, ext = os.path.splitext(fileobj)
6262
return FORMATS.get(ext.lower())
6363

0 commit comments

Comments
 (0)