fix: Support Python 3.6

pull/26/head
Raphaël Vinot 2020-01-13 17:50:50 +01:00
parent d0f7d1bf81
commit f88a0c8291
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class File(FileBase):
if self.extension in Config.override_ext: if self.extension in Config.override_ext:
expected_mimetypes = Config.override_ext[self.extension] expected_mimetypes = Config.override_ext[self.extension]
else: else:
expected_mimetype, encoding = mimetypes.guess_type(self.src_path, expected_mimetype, encoding = mimetypes.guess_type(str(self.src_path),
strict=False) strict=False)
expected_mimetypes = [expected_mimetype] expected_mimetypes = [expected_mimetype]