[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: This is a dup of #1043134 -- nosy: +lambacck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6799 ___

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2009-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is quite a reasonable request indeed. -- nosy: +pitrou priority: - normal stage: - needs patch versions: -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2009-08-28 Thread Paul Tarjan
New submission from Paul Tarjan pyt...@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',