Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport SVG mime type to Python 2 #63576

Closed
techtonik mannequin opened this issue Oct 24, 2013 · 8 comments
Closed

Backport SVG mime type to Python 2 #63576

techtonik mannequin opened this issue Oct 24, 2013 · 8 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@techtonik
Copy link
Mannequin

techtonik mannequin commented Oct 24, 2013

BPO 19377
Nosy @malemburg, @bitdancer, @berkerpeksag

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2016-04-09.05:18:16.786>
created_at = <Date 2013-10-24.13:44:11.557>
labels = ['type-feature', 'library']
title = 'Backport SVG mime type to Python 2'
updated_at = <Date 2016-04-09.05:18:16.733>
user = 'https://bugs.python.org/techtonik'

bugs.python.org fields:

activity = <Date 2016-04-09.05:18:16.733>
actor = 'berker.peksag'
assignee = 'none'
closed = True
closed_date = <Date 2016-04-09.05:18:16.786>
closer = 'berker.peksag'
components = ['Library (Lib)']
creation = <Date 2013-10-24.13:44:11.557>
creator = 'techtonik'
dependencies = []
files = []
hgrepos = []
issue_num = 19377
keywords = []
message_count = 8.0
messages = ['201130', '201132', '201138', '201141', '201159', '201760', '201764', '263067']
nosy_count = 5.0
nosy_names = ['lemburg', 'techtonik', 'r.david.murray', 'python-dev', 'berker.peksag']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue19377'
versions = ['Python 2.7']

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Oct 24, 2013

A request to backport bpo-10730 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.

@techtonik techtonik mannequin added the stdlib Python modules in the Lib dir label Oct 24, 2013
@tiran
Copy link
Member

tiran commented Oct 24, 2013

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.

@tiran tiran closed this as completed Oct 24, 2013
@tiran tiran added the type-feature A feature request or enhancement label Oct 24, 2013
@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Oct 24, 2013

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 http://www.w3.org/TR/SVG/mimereg.html, 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.

@techtonik techtonik mannequin reopened this Oct 24, 2013
@tiran
Copy link
Member

tiran commented Oct 24, 2013

It should be obvious that new mimetype == new feature. It doesn't matter if the type is popular or not.

@tiran tiran closed this as completed Oct 24, 2013
@malemburg
Copy link
Member

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.

@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Oct 30, 2013

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 bpo-16316.

http://bugs.python.org/issue15207 will break a lot of this stuff anyway, so I hope it will fix the issue.

@techtonik techtonik mannequin reopened this Oct 30, 2013
@techtonik
Copy link
Mannequin Author

techtonik mannequin commented Oct 30, 2013

Added bpo-19454 to settle this down.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Apr 9, 2016

New changeset 43a6e7104b78 by Berker Peksag in branch '2.7':
Issue bpo-19377: Add .svg to mimetypes.types_map
https://hg.python.org/cpython/rev/43a6e7104b78

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants