Philipp Hörist pushed to branch master at gajim / gajim
Commits:
fab432ad by mesonium at 2024-11-05T17:31:42+00:00
refactor: Remove obsolete code
Windows builds now use python 3.11
- - - - -
1 changed file:
- gajim/common/util/preview.py
Changes:
=====================================
gajim/common/util/preview.py
=====================================
@@ -190,13 +190,6 @@ def guess_mime_type(file_path: Path | str,
) -> str:
file_path = str(file_path)
- if not mimetypes.inited:
- # On Windows both mime types are only available
- # with python 3.11, so this can be removed once
- # the Windows build uses python 3.11
- mimetypes.add_type('image/webp', '.webp')
- mimetypes.add_type('image/avif', '.avif')
-
# The mimetypes module maps extensions to mime types
# it does no guessing based on file content
mime_type, _ = mimetypes.guess_type(file_path)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/fab432add7f0efacb32f998a9aec360ecea33911
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/fab432add7f0efacb32f998a9aec360ecea33911
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]