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.
Created on 2009年08月29日 00:10 by ptarjan, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg92051 - (view) | Author: Paul Tarjan (ptarjan) | Date: 2009年08月29日 00:10 | |
>>> 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']
|
|||
| msg92062 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2009年08月29日 11:34 | |
This is quite a reasonable request indeed. |
|||
| msg121825 - (view) | Author: Chris Lambacher (lambacck) * | Date: 2010年11月21日 01:14 | |
This is a dup of #1043134 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:52 | admin | set | github: 51048 |
| 2010年11月21日 01:15:53 | eric.araujo | set | status: open -> closed resolution: duplicate title: mimetypes does not give cannonical extension for guess_extension with text/plain -> mimetypes does not give canonical extension for guess_extension with text/plain superseder: Add preferred extensions for MIME types stage: needs patch -> resolved |
| 2010年11月21日 01:14:53 | lambacck | set | nosy:
+ lambacck messages: + msg121825 |
| 2009年08月29日 11:34:30 | pitrou | set | priority: normal versions: - Python 2.5, Python 3.0 nosy: + pitrou messages: + msg92062 stage: needs patch |
| 2009年08月29日 00:10:09 | ptarjan | create | |