Issue 16316: Support xz compression in mimetypes module (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/60520

classification

Title: Support xz compression in mimetypes module
Type: enhancement Stage: commit review
Components: Library (Lib) Versions: Python 3.3, Python 3.4, Python 2.7

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, eric.araujo, nadeem.vawda, python-dev, r.david.murray, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2012-10-24 21:40 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mimetypes-lzma.patch serhiy.storchaka,2012-10-24 21:40 review
issue16316_27.diff berker.peksag,2013-04-24 15:35
Messages (10)
msg173712 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-10-24 21:40
The proposed patch adds xz compression support in additional to gzip, compress and bzip2 in mimetypes module.
msg173986 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-27 23:27
LGTM.
msg174049 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-28 13:53
New changeset a3ba5fe9bfd3 by Nadeem Vawda in branch 'default': Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. http://hg.python.org/cpython/rev/a3ba5fe9bfd3
msg187373 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-04-19 16:34
Small changes in registries (mimetypes, html.entities, sometimes webbrowser) are acceptable in stable branches. Can you backport this?
msg187861 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-04-26 14:57
Xz-related mimetypes was added because Python 3.3+ supports xz compression. Backporting them to 3.3 makes sense. But backporting to 2.7 is more questionable.
msg187869 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-04-26 19:12
In my opinion supporting xz in the standard library is totally separate from keeping the mime types registry up to date.
msg187870 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-04-26 19:26
I agree with Éric.
msg188356 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-05-04 12:16
New changeset 26068bfec70e by Serhiy Storchaka in branch '2.7': Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. http://hg.python.org/cpython/rev/26068bfec70e New changeset d04259af01ff by Serhiy Storchaka in branch '3.3': Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. http://hg.python.org/cpython/rev/d04259af01ff
msg188357 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-05-04 12:20
Have backported.
msg188545 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-05-06 14:36
Thanks!
History
Date User Action Args
2022-04-11 14:57:37 admin set github: 60520
2013-05-06 14:36:56 eric.araujo set messages: +
2013-05-04 12:20:21 serhiy.storchaka set status: open -> closedresolution: fixedmessages: + versions: - Python 3.2
2013-05-04 12:16:53 python-dev set messages: +
2013-04-26 19:26:45 r.david.murray set messages: +
2013-04-26 19:12:53 eric.araujo set messages: +
2013-04-26 14:57:22 serhiy.storchaka set messages: +
2013-04-24 15:35:15 berker.peksag set files: + issue16316_27.diffnosy: + berker.peksagresolution: fixed -> (no value)
2013-04-19 16:34:32 eric.araujo set status: closed -> openmessages: + stage: resolved -> commit review
2013-04-19 16:33:23 eric.araujo link issue17796 superseder
2012-10-28 13:53:37 nadeem.vawda set status: open -> closedresolution: fixedstage: patch review -> resolved
2012-10-28 13:53:04 python-dev set nosy: + python-devmessages: +
2012-10-27 23:27:59 eric.araujo set nosy: + r.david.murray, eric.araujomessages: + versions: + Python 2.7, Python 3.2, Python 3.3
2012-10-24 21:40:45 serhiy.storchaka create