[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mimetypes.types_map
https://hg.python.org/cpython/rev/5143f86ffe57

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 /etc/mime.types
(Windows).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, which has a lot of useless stuff, we might update from the most 
recent *nix files (assuming that they have less than 'everything').

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
viewpoint that mimetypes should match what the IANA publishes and that adding 
missing types is a bugfix.  (It’s less disturbing than updating HTMLParser for 
example, and I agree with that.)  Georg’s inclusion of a registry addition for 
IIRC 3.2.2 would also indicate RM support for this viewpoint.

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.

--
nosy: +eric.araujo, sandro.tosi

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (Lib)
messages: 152751
nosy: iwd32900
priority: normal
severity: normal
status: open
title: mimetypes doesn't recognize .csv
type: behavior
versions: Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 whether updating mimetypes with a registered type 
can be considered a bug fix.  We've gone both ways in the past, as far as I can 
tell.  This one has the advantage of actually having a formal IANA 
registration, unlike the last couple.

--
nosy: +r.david.murray
stage:  - needs patch
versions: +Python 3.2, Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 it would be nice if there were an easy way to keep the mime-types 
dictionary up-to-date wrt. a system's mime-types file.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. There could be a special switch to mimetypes.py, which
would output the Python code of a dict mirroring /etc/mime.types (or
/etc/mime.types + the current built-in table) when run. Then it would
be easy to integrate the changes back into the code.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue13952
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com