scanner: replace deprecated imghdr with libmagic/puremagic

libmagic's Python bindings detect more types, puremagic is pure Python.

imghdr was dropped in Python 3.13.

This reverts commit 3bc246ccad.
This commit is contained in:
Jochen Sprickerhof 2024-10-07 20:50:37 +02:00 committed by Hans-Christoph Steiner
parent 432618eb03
commit 8a5359ab3f
2 changed files with 12 additions and 3 deletions

View file

@ -100,6 +100,7 @@ setup(
'paramiko',
'Pillow',
'apache-libcloud >= 0.14.1',
'puremagic',
'python-vagrant',
'PyYAML',
'qrcode',