消息 [214948]
I can reproduce this on Both OSX 10.9 and Ubuntu 12.04:
>>> import mimetypes
>>> mimetypes.guess_extension('image/jpeg')
'.jpe'
>>> mimetypes.init()
>>> mimetypes.guess_extension('image/jpeg')
'.jpeg'
The same thing happens for Python 3.4:
Python 3.4.0rc3 (default, Mar 13 2014, 10:48:59)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_all_extensions('image/jpeg')
['.jpg', '.jpeg', '.jpe']
>>> mimetypes.init()
>>> mimetypes.guess_all_extensions('image/jpeg')
['.jpeg', '.jpe', '.jpg']
This also looks related to Issue1043134 |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-03-27 12:40:07 | wichert | 修改 | recipients:
+ wichert, barry, terry.reedy, pitrou, r.david.murray, siona, l0nwlf |
| 2014-03-27 12:40:07 | wichert | 修改 | messageid: <1395924007.6.0.997591105762.issue4963@psf.upfronthosting.co.za> |
| 2014-03-27 12:40:07 | wichert | 链接 | issue4963 messages |
| 2014-03-27 12:40:07 | wichert | 创建 | |
|