[issue13952] mimetypes doesn't recognize .csv

2016-04-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Geoff. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue13952] mimetypes doesn't recognize .csv

2016-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset e704e0786332 by Berker Peksag in branch '2.7': Issue #13952: Add .csv to mimetypes.types_map https://hg.python.org/cpython/rev/e704e0786332 -- ___ Python tracker

[issue13952] mimetypes doesn't recognize .csv

2016-04-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 711672506b40 by Berker Peksag in branch '3.5': Issue #13952: Add .csv to mimetypes.types_map https://hg.python.org/cpython/rev/711672506b40 New changeset 5143f86ffe57 by Berker Peksag in branch 'default': Issue #13952: Add .csv to

[issue13952] mimetypes doesn't recognize .csv

2016-04-02 Thread Berker Peksag
Berker Peksag added the comment: I will commit issue13952.patch this weekend to 2.7, 3.5 and default. -- nosy: +berker.peksag stage: needs patch -> patch review versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue13952] mimetypes doesn't recognize .csv

2016-04-01 Thread Werner Van Geit
Werner Van Geit added the comment: Will this patch ever make it into the main python version ? I just ran into exactly this issue (mimetypes returns None as mimetype of csv file on Windows) -- nosy: +Werner Van Geit versions: +Python 3.4, Python 3.5, Python 3.6

[issue13952] mimetypes doesn't recognize .csv

2013-02-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13952 ___ ___ Python-bugs-list

[issue13952] mimetypes doesn't recognize .csv

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch against 2.7 to add csv to the internal list. It is popular enough as a format, that it should work even if the system mime files are stale. -- keywords: +patch nosy: +gmwils Added file: http://bugs.python.org/file29187/issue13952.patch

[issue13952] mimetypes doesn't recognize .csv

2012-05-15 Thread Paul Cauchon
Changes by Paul Cauchon paulcauc...@gmail.com: -- nosy: +Paul.Cauchon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13952 ___ ___ Python-bugs-list

[issue13952] mimetypes doesn't recognize .csv

2012-02-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: About Antoine’s remark: mimetypes already reads mime.types files, so even if our internal registry is not up-to-date the module should know about all types present in /etc/mime.types. The point was about systems which don't have a

[issue13952] mimetypes doesn't recognize .csv

2012-02-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On Windows we do (now) read from the registry as well. My guess is there are a lot more Windows systems out there with outdated registries then there are unix systems with outdated /etc/mime files, though. --

[issue13952] mimetypes doesn't recognize .csv

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: One solution would be to update our mimetypes file just before a new version, and then leave it until the next, just as we update unicodedata to current unicode and then leave it alone for bugfix releases. Rather than the entire IANA file,

[issue13952] mimetypes doesn't recognize .csv

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve been one to argue that additions to the mimetypes registry are clearly new features. Now if two senior devs like you think otherwise, I’m reconsidering. These additions can’t possibly break code, can they? So I can agree with a

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread Ian Davis
New submission from Ian Davis iwd32...@yahoo.com: The mimetypes module does not respond with text/csv for files that end in .csv, and I think it should :) For goodness sake, text/tab-delimited-values is in there as .tsv, and that seems much less used (to me). -- components: Library

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, but text/tab-delimited-values/.tsv is older. .tsv dates from the days of Gopher, but text/csv was formalized only in October of 2005. Presumably nobody has asked for it before, for some odd reason. Now we get to debate again

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I would argue the embedded mime-types dictionary should at least mirror current IANA assignments, which are already present in up-to-date Unix systems: mimetypes.guess_type(foo.csv) ('text/csv', None) So not having text/csv is IMHO a bug. Also

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: As far as I know having it mirror the IANA registry is the intent (there's a comment in the module that can be read as implying that). So I'd be inclined to treat this one as a bug and fix it in 2.7 and 3.2 as well as 3.3. I'm not sure

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure what you mean by your final comment, since by default the system mime types are read on both Unix and Windows and merged with the built in table. I mean to have our built-in table mirror a recent Unix system's mime-types table.

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, analagous to the way keyword.py regenerates its embedded table based on the actual python grammar? Yes, that would be nice. -- ___ Python tracker rep...@bugs.python.org