]> granicus.if.org Git - python/commitdiff
Another egregious error that copied the encodings info over the suffix
authorFred Drake <fdrake@acm.org>
Thu, 16 Aug 2001 18:14:38 +0000 (18:14 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 16 Aug 2001 18:14:38 +0000 (18:14 +0000)
info.  Caught by the tests that I'm writing now.

Lib/mimetypes.py

index f7c4a7609af34da4b9a64b0eda69049381a920e9..c53c33c8b902a20b0bf0f5686fe2a65bc5835a35 100644 (file)
@@ -193,7 +193,7 @@ def init(files=None):
         if os.path.isfile(file):
             db.readfp(open(file))
     encodings_map = db.encodings_map
-    suffix_map = db.encodings_map
+    suffix_map = db.suffix_map
     types_map = db.types_map
     guess_extension = db.guess_extension
     guess_type = db.guess_type