(fn)
| 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', |
no outgoing calls
no test coverage detected
searching dependent graphs…