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