[Python-checkins] cpython (2.7): Issue #19377: Add .svg to mimetypes.types_map
berker.peksag
python-checkins at python.org
Sat Apr 9 01:17:17 EDT 2016
https://hg.python.org/cpython/rev/43a6e7104b78
changeset: 100885:43a6e7104b78
branch: 2.7
user: Berker Peksag <berker.peksag at gmail.com>
date: Sat Apr 09 08:17:53 2016 +0300
summary:
Issue #19377: Add .svg to mimetypes.types_map
This is a backport of caf89a6a17a7.
files:
Lib/mimetypes.py | 2 ++
Misc/NEWS | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -382,6 +382,7 @@
global common_types
suffix_map = {
+ '.svgz': '.svg.gz',
'.tgz': '.tar.gz',
'.taz': '.tar.gz',
'.tz': '.tar.gz',
@@ -500,6 +501,7 @@
'.src' : 'application/x-wais-source',
'.sv4cpio': 'application/x-sv4cpio',
'.sv4crc' : 'application/x-sv4crc',
+ '.svg' : 'image/svg+xml',
'.swf' : 'application/x-shockwave-flash',
'.t' : 'application/x-troff',
'.tar' : 'application/x-tar',
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -65,6 +65,8 @@
Library
-------
+- Issue #19377: Add .svg to mimetypes.types_map.
+
- Issue #13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
- Issue #16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list