]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport rev 1.30 removing 'self' from the arg list for add_type()
authorRaymond Hettinger <python@rcn.com>
Sat, 20 Dec 2003 20:31:08 +0000 (20:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 20 Dec 2003 20:31:08 +0000 (20:31 +0000)
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