]> granicus.if.org Git - python/commitdiff
Remove self from the arguments for the function add_type().
authorWalter Dörwald <walter@livinglogic.de>
Fri, 19 Dec 2003 18:15:10 +0000 (18:15 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 19 Dec 2003 18:15:10 +0000 (18:15 +0000)
Backport candidate.

Lib/mimetypes.py

index 77fdcdf056e601a5857e7e7a9c2284d67563dc1e..88b9e2f91e87e5df66399afd03ca022247d11b12 100644 (file)
@@ -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