From: Raymond Hettinger Date: Sat, 20 Dec 2003 20:31:08 +0000 (+0000) Subject: Backport rev 1.30 removing 'self' from the arg list for add_type() X-Git-Tag: v2.3.4c1~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=379227e4b9e5ac5be9fc8629ed186ea23eee7acd;p=thirdparty%2FPython%2Fcpython.git Backport rev 1.30 removing 'self' from the arg list for add_type() --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 77fdcdf056e6..88b9e2f91e87 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -268,7 +268,7 @@ def guess_extension(type, strict=True): init() return guess_extension(type, strict) -def add_type(self, type, ext, strict=True): +def add_type(type, ext, strict=True): """Add a mapping between a type and an extension. When the extension is already known, the new