Created attachment 200750 [details]
Patch file for py-python-magic
Update py-python-magic to the latest version which has better support for Python3, specifically so that magic information can be returned as strings instead of bytes.
Thank you for the report and patch Gilbert
(In reply to Kubilay Kocak from comment #1)
A commit references this bug:
Date: Sat Apr 20 13:11:42 UTC 2019
New revision: 499441
devel/py-python-magic: Update to 0.4.15
- Add USE_GITHUB comment (missing test data files)
There are a number of test failures that are a consequence of slight differences
between platform magic implementations and/or databases. Two have been reported
upstream  and will be resolved in a subsequent release.
Submitted by: Gilbert Morgan <gmm tutanota com>
Committed, with minor changes. Apologies for the delay Gilbert