Author Norman Lorrain
Recipients Norman Lorrain
Date 2021-05-17.20:07:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621282051.43.0.360725062769.issue44159@roundup.psfhosted.org>
In-reply-to
Content
Possible solution is to read the Windows Registry entries, assigning those entries as "strict=False".  Unit tests pass with this change:

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 018793c4f0..dd2bddf064 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -350,7 +350,7 @@ def init(files=None):
     if files is None or _db is None:
         db = MimeTypes()
         if _winreg:
-            db.read_windows_registry()
+            db.read_windows_registry(strict = False)
 
         if files is None:
             files = knownfiles
History
Date User Action Args
2021-05-17 20:07:31Norman Lorrainsetrecipients: + Norman Lorrain
2021-05-17 20:07:31Norman Lorrainsetmessageid: <1621282051.43.0.360725062769.issue44159@roundup.psfhosted.org>
2021-05-17 20:07:31Norman Lorrainlinkissue44159 messages
2021-05-17 20:07:31Norman Lorraincreate