diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-09-03 04:29:02 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-09-10 02:21:42 +0000 |
| commit | 811f6b461be47e11433f3b1b9ee47ccda3786ca2 (patch) | |
| tree | c137ac55304859c1a50b4fc11257fec1dad3d126 /contrib/file/python/magic.py | |
| parent | 74c5995d2e8d8639fdc723561f06a82ab86ee9c4 (diff) | |
MFC: MFV: file 5.48
(cherry picked from commit 7af41682a96bf7058b82665c33bb9b1bfa079c17)
Diffstat (limited to 'contrib/file/python/magic.py')
| -rw-r--r-- | contrib/file/python/magic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/file/python/magic.py b/contrib/file/python/magic.py index 14938281c659..1db4a5d012d5 100644 --- a/contrib/file/python/magic.py +++ b/contrib/file/python/magic.py @@ -127,14 +127,14 @@ _setparam.argtypes = [magic_t, c_int, c_void_p] class Magic(object): def __init__(self, ms): self._magic_t = ms - self._close = _close + self._close = _close def close(self): """ Closes the magic database and deallocates any resources used. """ - if _close: - _close(self._magic_t) + if self._close: + self._close(self._magic_t) @staticmethod def __tostr(s): |
