mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue