From dff7bee0a2ee9d5a41fc2d285f7cf12d1432fd83 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Tue, 26 Oct 2021 20:33:17 +0200 Subject: Add github actions Fixes: #39 --- 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