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', '.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 <rep...@bugs.python.org> <http://bugs.python.org/issue6799> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com