[Python-checkins] python/dist/src/Lib mimetypes.py,1.29,1.30
doerwalter at users.sourceforge.net
doerwalter at users.sourceforge.net
Fri Dec 19 13:15:21 EST 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7556/Lib
Modified Files:
mimetypes.py
Log Message:
Remove self from the arguments for the function add_type().
Backport candidate.
Index: mimetypes.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mimetypes.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** mimetypes.py 20 Oct 2003 14:01:50 -0000 1.29
--- mimetypes.py 19 Dec 2003 18:15:10 -0000 1.30
***************
*** 269,273 ****
return guess_extension(type, strict)
! def add_type(self, type, ext, strict=True):
"""Add a mapping between a type and an extension.
--- 269,273 ----
return guess_extension(type, strict)
! def add_type(type, ext, strict=True):
"""Add a mapping between a type and an extension.
More information about the Python-checkins
mailing list