diff options
author | Adam Hupp <adam@hupp.org> | 2018-09-01 16:34:13 -0700 |
---|---|---|
committer | Adam Hupp <adam@hupp.org> | 2018-09-01 16:34:13 -0700 |
commit | 33528682227836c6375c848bee8c767e42641fd8 (patch) | |
tree | 6c9897e68c8880b92e8e6848083d3128809d75ff /magic.py | |
parent | 79eed130562212190140f6192b296d1142cb762f (diff) | |
download | python-magic-fix-ci.tar.gz |
Use INDIR_MAX rather than BYTES_MAX in tests since the latter wasn'tfix-ci
supported until recently. Also, return .value from the ctypes wrapper
so callers aren't required to.
Diffstat (limited to 'magic.py')
-rw-r--r-- | magic.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ _magic_getparam.errcheck = errorcheck_negative_one def magic_getparam(cookie, param): val = c_size_t() _magic_getparam(cookie, param, byref(val)) - return val + return val.value MAGIC_NONE = 0x000000 # No flags MAGIC_DEBUG = 0x000001 # Turn on debugging |