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.

作者 elesbom
收信人 BreamoreBoy, ajaksu2, elesbom, eric.araujo, jlgijsbers, josiahcarlson, kxroberto, lambacck, ptarjan, skrah
日期 2010-11-21.17:09:17
SpamBayes Score 0.00025299803
Marked as misclassified
Message-id <1290359360.95.0.773050118761.issue1043134@psf.upfronthosting.co.za>
In-reply-to
内容
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:21elesbom修改recipients: + elesbom, jlgijsbers, josiahcarlson, kxroberto, ajaksu2, eric.araujo, lambacck, skrah, ptarjan, BreamoreBoy
2010-11-21 17:09:20elesbom修改messageid: <1290359360.95.0.773050118761.issue1043134@psf.upfronthosting.co.za>
2010-11-21 17:09:17elesbom链接issue1043134 messages
2010-11-21 17:09:17elesbom创建