This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Backport SVG mime type to Python 2
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, lemburg, python-dev, r.david.murray, techtonik
Priority: normal Keywords:

Created on 2013-10-24 13:44 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (8)
msg201130 - (view) Author: anatoly techtonik (techtonik) Date: 2013-10-24 13:44
A request to backport issue10730 commit to Python 2.x
Why? Google Client API uses mimetype module to detect file types when uploading to Google Drive, and because SVG is missing, it can not be edited after uploading.
msg201132 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-10-24 13:46
That's against our policy. We don't add new features to stable releases. Users of the Google Client API can easily work around the issue and register their own mimetypes.
msg201138 - (view) Author: anatoly techtonik (techtonik) Date: 2013-10-24 14:08
I am not sure that policy defines anything related to datasets bundled with Python. Even when try to adopt policy reading to this case, it doesn't look like a feature, but a bug fix.

SVG is a registered MIME type, SVG is the most popular (the only one?) open source format for vector graphics, which should be present in Python database, but it isn't.

I don't know what do you mean by "work around". Users don't know that the source of the bug is missing information from mimetypes package.
msg201141 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-10-24 14:36
It should be obvious that new mimetype == new feature. It doesn't matter if the type is popular or not.
msg201159 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2013-10-24 17:28
Christian: I think adding MIME types falls under platform support and we do still add platform support to Python 2.7.

That said, the mimetypes module *does* use platform files for determining MIME types, so adding missing MIME types there will likely result in a more usable overall system :-)

In other words: the problem is not really in Python's module, which only provides a bare minimum of MIME types, but in the system setup of your system, Anatoly.
msg201760 - (view) Author: anatoly techtonik (techtonik) Date: 2013-10-30 18:47
I think we are talking about double standards.

Why the .xz and .txz are worthy including in 2.7.5 and .svg is not? See issue #16316. will break a lot of this stuff anyway, so I hope it will fix the issue.
msg201764 - (view) Author: anatoly techtonik (techtonik) Date: 2013-10-30 18:58
Added issue19454 to settle this down.
msg263067 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-04-09 05:17
New changeset 43a6e7104b78 by Berker Peksag in branch '2.7':
Issue #19377: Add .svg to mimetypes.types_map
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63576
2016-04-09 05:18:16berker.peksagsetstatus: open -> closed
nosy: + berker.peksag

resolution: fixed
versions: - Python 2.6
2016-04-09 05:17:20python-devsetnosy: + python-dev
messages: + msg263067
2013-11-17 14:00:05christian.heimessetnosy: - christian.heimes
2013-10-30 18:58:01techtoniksetmessages: + msg201764
2013-10-30 18:47:39techtoniksetstatus: closed -> open
resolution: wont fix -> (no value)
messages: + msg201760
2013-10-24 17:36:55ezio.melottisetnosy: + r.david.murray
2013-10-24 17:28:00lemburgsetnosy: + lemburg
messages: + msg201159
2013-10-24 14:36:41christian.heimessetstatus: open -> closed

messages: + msg201141
2013-10-24 14:08:31techtoniksetstatus: closed -> open

messages: + msg201138
2013-10-24 13:46:01christian.heimessetstatus: open -> closed

type: enhancement

nosy: + christian.heimes
messages: + msg201132
resolution: wont fix
stage: resolved
2013-10-24 13:44:11techtonikcreate