This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ptarjan
Recipients ptarjan
Date 2009-08-29.00:10:08
SpamBayes Score 0.0003209155
Marked as misclassified No
Message-id <1251504611.25.0.614751141151.issue6799@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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']
History
Date User Action Args
2009-08-29 00:10:11ptarjansetrecipients: + ptarjan
2009-08-29 00:10:11ptarjansetmessageid: <1251504611.25.0.614751141151.issue6799@psf.upfronthosting.co.za>
2009-08-29 00:10:09ptarjanlinkissue6799 messages
2009-08-29 00:10:09ptarjancreate