From: Walter Dörwald Date: Fri, 3 Jan 2003 21:02:36 +0000 (+0000) Subject: Pass the strict argument from read() on to readfp(), so the X-Git-Tag: v2.3c1~2614 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51cc72c6c01a40f14ab84bfaf918dca81631db15;p=python Pass the strict argument from read() on to readfp(), so the file content ends up in the correct dict. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index f1a1a3e3cb..1f2c9d6a87 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -192,7 +192,7 @@ class MimeTypes: types. """ fp = open(filename) - self.readfp(fp) + self.readfp(fp, strict) fp.close() def readfp(self, fp, strict=True):