diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-09-03 04:29:02 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-09-03 04:30:33 +0000 |
| commit | 7af41682a96bf7058b82665c33bb9b1bfa079c17 (patch) | |
| tree | f5ee10a7573306e2008b4a19f67af4073490ce1f /contrib/file/python/magic.py | |
| parent | 74c539fd1cefdbc993411274c613434c3f23b4b1 (diff) | |
| parent | 288b27192b2ad4a50fe5bbd6a821aa79739c68bc (diff) | |
MFV: file 5.48
MFC after: 1 week
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): |
