From 1222900157502624f3c9774c81bac1e096ea88b0 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 27 Oct 2021 18:02:39 +0200 Subject: chore: add github actions (#42) * Add github actions Fixes: #39 * Fix workflow --- mimeparse.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mimeparse.py') diff --git a/mimeparse.py b/mimeparse.py index 0218553..0de6d57 100644 --- a/mimeparse.py +++ b/mimeparse.py @@ -85,14 +85,9 @@ def quality_and_fitness_parsed(mime_type, parsed_ranges): for (type, subtype, params) in parsed_ranges: # check if the type and the subtype match - type_match = ( - type in (target_type, '*') or - target_type == '*' - ) - subtype_match = ( - subtype in (target_subtype, '*') or - target_subtype == '*' - ) + type_match = type in (target_type, '*') or target_type == '*' + + subtype_match = subtype in (target_subtype, '*') or target_subtype == '*' # if they do, assess the "fitness" of this mime_type if type_match and subtype_match: -- cgit v1.2.1