summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/mimetypes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 402a1d0..f7c4a76 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -130,11 +130,11 @@ class MimeTypes:
self.readfp(fp)
fp.close()
- def readfp(self):
+ def readfp(self, fp):
"""Read a single mime.types-format file."""
map = self.types_map
while 1:
- line = f.readline()
+ line = fp.readline()
if not line:
break
words = line.split()