summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-12-19 18:15:10 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-12-19 18:15:10 (GMT)
commit893020b59bcabd99e2f64b0791626212568caadf (patch)
treedbb72f869761ba15d3ba184caad0b65c26a9fab3 /Lib
parent4a264fb054dd21bd1df83f60b43b13004e0af6f1 (diff)
downloadcpython-893020b59bcabd99e2f64b0791626212568caadf.zip
cpython-893020b59bcabd99e2f64b0791626212568caadf.tar.gz
cpython-893020b59bcabd99e2f64b0791626212568caadf.tar.bz2
Remove self from the arguments for the function add_type().
Backport candidate.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/mimetypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index 77fdcdf..88b9e2f 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