MCPcopy Create free account
hub / github.com/ahupp/python-magic / deprecation_wrapper

Function deprecation_wrapper

magic/__init__.py:435–444  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

433 from magic import compat
434
435 def deprecation_wrapper(fn):
436 def _(*args, **kwargs):
437 warnings.warn(
438 "Using compatibility mode with libmagic's python binding. "
439 "See https://github.com/ahupp/python-magic/blob/master/COMPAT.md for details.",
440 PendingDeprecationWarning)
441
442 return fn(*args, **kwargs)
443
444 return _
445
446 fn = ['detect_from_filename',
447 'detect_from_content',

Callers 1

_add_compatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…