Message79961
3.0, WinXP
import mimetypes
print(mimetypes.guess_extension('image/jpeg'))
mimetypes.init()
print(mimetypes.guess_extension('image/jpeg'))
gives
.jpe
.jpe
I wonder at this answer since .jpg and occasionally .jpeg is standard in
Windows usage, but the doc is unclear to me as to the actual intent of
the function. |
|
| Date |
User |
Action |
Args |
| 2009-01-16 16:40:59 | terry.reedy | set | recipients:
+ terry.reedy, siona |
| 2009-01-16 16:40:59 | terry.reedy | set | messageid: <[email protected]> |
| 2009-01-16 16:40:59 | terry.reedy | link | issue4963 messages |
| 2009-01-16 16:40:58 | terry.reedy | create | |
|