File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments