[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-21 Thread Chris Lambacher
Chris Lambacher added the comment: Rafael, There is already a method which returns all the extensions. What is required is a flag (or separate dict) which provides a canonical extension. The questions is whether it is sufficient to rely on the default provided mimetypes for the default in th

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-21 Thread Rafael dos Santos Gonçalves
Rafael dos Santos Gonçalves 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

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: While I agree that getting .ksh is an unfortunate guess, I am not sure how you can guess in the face of many options (especially when the those options are parsed out of a mimetypes file or the windows registry). Perhaps there should be a "resonable_default

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-08-20 Thread Stefan Krah
Stefan Krah added the comment: I think you are closing too aggressively. Python 3.2a0 (py3k:81783, Jun 6 2010, 16:07:26) [GCC 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mimetypes >>> mimety

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-08-19 Thread Mark Lawrence
Mark Lawrence added the comment: I'll close this in a couple of weeks unless someone wants it kept open. -- nosy: +BreamoreBoy status: open -> pending ___ Python tracker ___ _

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2009-02-14 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk. -- nosy: +ajaksu2 stage: -> test needed versions: +Python 2.7 ___ Python tracker ___ _