]> granicus.if.org Git - python/commitdiff
Pass the strict argument from read() on to readfp(), so the
authorWalter Dörwald <walter@livinglogic.de>
Fri, 3 Jan 2003 21:02:36 +0000 (21:02 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 3 Jan 2003 21:02:36 +0000 (21:02 +0000)
file content ends up in the correct dict.

Lib/mimetypes.py

index f1a1a3e3cb48b4988d321fa7c7392c076e60b515..1f2c9d6a876e50ab85d928302878738f478df424 100644 (file)
@@ -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):