From e81ce6cd1aadc382b37a428d3e030fc33f4464c5 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 10 Jun 2018 00:28:43 +0200 Subject: Fix and add a test for explicitly non-supported formats --- libmat2/__init__.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'libmat2/__init__.py') diff --git a/libmat2/__init__.py b/libmat2/__init__.py index 07d3036..91a51d8 100644 --- a/libmat2/__init__.py +++ b/libmat2/__init__.py @@ -1,6 +1,21 @@ #!/bin/env python3 # A set of extension that aren't supported, despite matching a supported mimetype -unsupported_extensions = set(['bat', 'c', 'h', 'ksh', 'pl', 'txt', 'asc', - 'text', 'pot', 'brf', 'srt', 'rdf', 'wsdl', - 'xpdl', 'xsl', 'xsd']) +unsupported_extensions = { + '.asc', + '.bat', + '.brf', + '.c', + '.h', + '.ksh', + '.pl', + '.pot', + '.rdf', + '.srt', + '.text', + '.txt', + '.wsdl', + '.xpdl', + '.xsd', + '.xsl', + } -- cgit v1.3