From f88a0c82913150c8eecf27574b4c82cdc57ca476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 13 Jan 2020 17:50:50 +0100 Subject: [PATCH] fix: Support Python 3.6 --- filecheck/filecheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filecheck/filecheck.py b/filecheck/filecheck.py index a2b1425..412142b 100644 --- a/filecheck/filecheck.py +++ b/filecheck/filecheck.py @@ -188,7 +188,7 @@ class File(FileBase): if self.extension in Config.override_ext: expected_mimetypes = Config.override_ext[self.extension] else: - expected_mimetype, encoding = mimetypes.guess_type(self.src_path, + expected_mimetype, encoding = mimetypes.guess_type(str(self.src_path), strict=False) expected_mimetypes = [expected_mimetype]