[New-bugs-announce] [issue34340] mimetypes libmagic compatibility
bpypy
report at bugs.python.org
Sun Aug 5 12:48:48 EDT 2018
New submission from bpypy <python at bzx2.com>:
An obvious use case for mimetypes would be to check if file has correct mimetype, by getting the type with some of libmagic wrappers, and then comparing to guess_type result.
But it seems that they don't always match. One example:
applicattion/rar vs application/x-rar
https://github.com/file/file/blob/b9e60f088847f885b5c9fde61ff8fc9645843506/magic/Magdir/archive#L986
Kills half the usefullness of the module.
----------
components: Extension Modules
messages: 323160
nosy: bpypy
priority: normal
severity: normal
status: open
title: mimetypes libmagic compatibility
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34340>
_______________________________________
More information about the New-bugs-announce
mailing list