Rafael dos Santos Gonçalves <rafaelsant...@gmail.com> added the comment:

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

----------
keywords: +patch
nosy: +elesbom
Added file: http://bugs.python.org/file19752/issue1043134.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1043134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to