Author elesbom
Recipients BreamoreBoy, ajaksu2, elesbom, eric.araujo, jlgijsbers, josiahcarlson, kxroberto, lambacck, ptarjan, skrah
Date 2010-11-21.17:09:17
SpamBayes Score 0.000252998
Marked as misclassified No
Message-id <1290359360.95.0.773050118761.issue1043134@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-11-21 17:09:21elesbomsetrecipients: + elesbom, jlgijsbers, josiahcarlson, kxroberto, ajaksu2, eric.araujo, lambacck, skrah, ptarjan, BreamoreBoy
2010-11-21 17:09:20elesbomsetmessageid: <1290359360.95.0.773050118761.issue1043134@psf.upfronthosting.co.za>
2010-11-21 17:09:17elesbomlinkissue1043134 messages
2010-11-21 17:09:17elesbomcreate