| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
This reverts commit cd3929fa7cbc2e383629d0893fc08bcb68a7614c.
|
| |
|
|
| |
This reverts commit c7a2e7bc7c387af23b3c896bf05003cf2bd8646b.
|
| | |
|
| |
|
|
| |
* added path for local homebrew installation
* used brew --prefix to detect local path
|
| |
|
|
| |
This is the name of the DLL file generated when using vcpkg to build libmagic:
https://github.com/microsoft/vcpkg/tree/master/ports/libmagic
|
| |
|
|
| |
See https://github.com/ahupp/python-magic/pull/251
|
| |
|
|
|
|
| |
I can't repro this, but PR #250 suggests that some versions of
libmagic will return a mimetype that doesn't include a charset,
leading to an exception. Fall back to an empty charset in this case.
|
| | |
|
| |
|
|
|
|
|
|
| |
Simplify library loading so it's clearer what should happen for each
platform. There is a very small chance this is a regression if you
were somehow relying on windows DLL names on a non-windows platform.
Also resolves https://github.com/ahupp/python-magic/pull/245
|
| |
|
|
| |
https://www.python.org/dev/peps/pep-0561/#packaging-type-information
|
| |
|
|
|
|
|
|
|
| |
__del__ is called regardless of whether __init__ passed, so the cookie
attribute may not exits. This can be seen with:
python3 -c "import magic; magic.Magic(foo=None)"
Also discussed in https://github.com/ahupp/python-magic/pull/222#issuecomment-675354824
|
| |
|
|
| |
This reverts commit 16972c2c6fda3573860f5f8b0f2c03b757e71d3c.
|
| | |
|
| |
|
|
|
|
|
| |
Seems to hit windows, probably OSX. We have great test coverage
across linux distros, not so much elsewhere.
Tested on my windows box by manually installing the wheel file.
|
| |
|
|
| |
https://github.com/ahupp/python-magic/issues/232
|
| | |
|
| | |
|
| |
|
|
| |
been released yet
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
I achieved this via the PyCharm Reformat Shortcut
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The libmagic distribution uses the same package name `magic` as
python-magic, but has an incompatible API. This change merges in a
copy of libmagic's bindings, wrapped to give deprecation warnings.
This is intended to a) mitigate the short-term pain to users and
packagers who need to figure out which to use, and b) give us a path
to merging the two sets of bindings.
I'd be happy for libmagic to take over this package if we could find a
path to it.
|
| | |
|
| |
|