From: Walter Dörwald Date: Fri, 19 Dec 2003 18:15:10 +0000 (+0000) Subject: Remove self from the arguments for the function add_type(). X-Git-Tag: v2.4a1~1064 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=893020b59bcabd99e2f64b0791626212568caadf;p=python Remove self from the arguments for the function add_type(). Backport candidate. --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 77fdcdf056..88b9e2f91e 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