[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Facilitating contributions by newcomers



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


Reply to: