消息 [121953]
ksh is a text/plain to, all this extension are text/plain:
'.ksh', '.pl', '.bat', '.h', '.c', '.txt', '.asc', '.text', '.pot', '.brf'.
The problem is: the code return the first of list:
return extensions[0]
So, I add one boolean parameter in method guess_extension called all_exts. Putting True in this parameter the method returns a tuple with all possible extensions.
I hope helped |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-11-21 17:09:21 | elesbom | 修改 | recipients:
+ elesbom, jlgijsbers, josiahcarlson, kxroberto, ajaksu2, eric.araujo, lambacck, skrah, ptarjan, BreamoreBoy |
| 2010-11-21 17:09:20 | elesbom | 修改 | messageid: <1290359360.95.0.773050118761.issue1043134@psf.upfronthosting.co.za> |
| 2010-11-21 17:09:17 | elesbom | 链接 | issue1043134 messages |
| 2010-11-21 17:09:17 | elesbom | 创建 | |
|