On Tue, Nov 11, 2014 at 1:47 PM, Jordan Metzmeier wrote: > I have attached a diff of a working example using the built-in > mimetypes module. This isn't a very big improvement since it's still > based on file extensions, but changing the check to use the > python-magic module on pypi should be trivial. I do not consider this > diff to be merge ready, as I would want to refactor some of the code > to make the additions cleaner.
I think the mime matching should complement rather than replace the name matching. -- bye, pabs https://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/caktje6e8yt99-xl8lrci33fj3yn4w91egqq3m6ke1w+z3_e...@mail.gmail.com