[New-bugs-announce] [issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

Paul Tarjan report at bugs.python.org
Sat Aug 29 02:10:11 CEST 2009


New submission from Paul Tarjan <python at paulisageek.com>:

>>> import mimetypes

>>> mimetypes.guess_extension("text/plain")
'.ksh'

most others are correct, it is just this one is quite wrong. I would
recommend changing it to .txt . 

>>> mimetypes.guess_all_extensions("text/plain")
['.ksh', '.pl', '.c', '.bat', '.h', '.txt', '.asc', '.text', '.pot', '.brf']

----------
components: Library (Lib)
messages: 92051
nosy: ptarjan
severity: normal
status: open
title: mimetypes does not give cannonical extension for guess_extension with text/plain
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6799>
_______________________________________


More information about the New-bugs-announce mailing list