1
0

0.4.27-48-gff3e049.drop-unused-imports.patch 825 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Subject: Drop unused imports
  2. Origin: upstream, commit 0.4.27-48-gff3e049 <https://github.com/ahupp/python-magic/commit/0.4.27-48-gff3e049>
  3. Author: Semyon Pupkov <mail@semyonpupkov.com>
  4. Date: Tue Mar 3 10:05:56 2026 +0500
  5. Forwarded: not-needed
  6. --- a/magic/__init__.py
  7. +++ b/magic/__init__.py
  8. @@ -18,11 +18,7 @@
  9. import sys
  10. import os
  11. -import glob
  12. -import ctypes
  13. -import ctypes.util
  14. import threading
  15. -import logging
  16. from ctypes import c_char_p, c_int, c_size_t, c_void_p, byref, POINTER
  17. @@ -252,7 +248,7 @@
  18. libmagic = loader.load_lib()
  19. -magic_t = ctypes.c_void_p
  20. +magic_t = c_void_p
  21. def errorcheck_null(result, func, args):
  22. --- a/magic/compat.py
  23. +++ b/magic/compat.py
  24. @@ -8,7 +8,6 @@
  25. from collections import namedtuple
  26. from ctypes import *
  27. -from ctypes.util import find_library
  28. from . import loader