summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2021-01-15 14:17:45 -0800
committerAdam Hupp <adam@hupp.org>2021-01-15 14:17:45 -0800
commitd61e3856696f8a88bc88b10eda6ac3b88710bc35 (patch)
treed0820c24dcceb03172a13d37e2d379f110dcd3c7
parent1f525c80a41e71cd465e6be718e23b5146ec3d3e (diff)
downloadpython-magic-d61e3856696f8a88bc88b10eda6ac3b88710bc35.tar.gz
changelog for 0.4.19
-rw-r--r--CHANGELOG22
1 files changed, 22 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index a9d62af..997b28d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,25 @@
+Changes in 0.4.19
+
+- merge in a compatability layer for the upstream libmagic python binding.
+ Since both this package and that one are called 'magic', this compat layer
+ removes a very common source of runtime errors. Use of that libmagic API will
+ produce a deprecation warning.
+
+- support python 3.9 in tests and pypi metadata
+
+- add support for magic_descriptor functions, which take a file descriptor
+ rather than a filename.
+
+- sometimes the returned description includes snippets of the file, e.g a title
+ for MS Word docs. Since this is in an unknown encoding, we would throw a
+ unicode decode error trying to decode. Now, it decodes with
+ 'backslashreplace' to handle this more gracefully. The undecodable characters
+ are replaced with hex escapes.
+
+- add support for MAGIC_EXTENSION, to return possible file extensions.
+
+- add mypy typing stubs file, for type checking
+
Changes in 0.4.18
- Make bindings for magic_[set|get]param optional, and throw NotImplementedError