Skip to content

Commit 6f2edbb

Browse files
committed
tidy
1 parent 42e0b45 commit 6f2edbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unstructured/file_utils/filetype.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ def _file_type_from_guessed_mime_type(self) -> FileType | None:
268268
if file_type != FileType.UNK:
269269
return file_type
270270

271-
# -- on some environments libmagic can return a generic/unhelpful MIME-type (for example,
272-
# -- "application/octet-stream") for files that the `filetype` package can still identify.
273-
# -- when that happens we retry using `filetype` to avoid unnecessary `FileType.UNK` results.
271+
# -- on some environments libmagic can return a generic/unhelpful MIME-type
272+
# -- like octet-stream") for files that the `filetype` package identify.
273+
# -- when that happens we retry using `filetype` `FileType.UNK` results.
274274
if LIBMAGIC_AVAILABLE:
275275
fallback_mime_type = (
276276
ft.guess_mime(self._ctx.file_path)

0 commit comments

Comments
 (0)