mirror of https://github.com/python/cpython
Pass the strict argument from read() on to readfp(), so the
file content ends up in the correct dict.
This commit is contained in:
parent
01f43118f7
commit
51cc72c6c0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue