summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-01-03 21:02:36 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-01-03 21:02:36 (GMT)
commit51cc72c6c01a40f14ab84bfaf918dca81631db15 (patch)
tree469ce7bb21cea6759272ee6b038f2b56f8e09b99
parent01f43118f7b51a538ad9e3f23251319bd3db125e (diff)
downloadcpython-51cc72c6c01a40f14ab84bfaf918dca81631db15.zip
cpython-51cc72c6c01a40f14ab84bfaf918dca81631db15.tar.gz
cpython-51cc72c6c01a40f14ab84bfaf918dca81631db15.tar.bz2
Pass the strict argument from read() on to readfp(), so the
file content ends up in the correct dict.
-rw-r--r--Lib/mimetypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index f1a1a3e..1f2c9d6 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):