summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-11 19:32:37 (GMT)
committerGitHub <noreply@github.com>2020-06-11 19:32:37 (GMT)
commita3d6d23a923d62a713b9e4536d5f7ce7313d99c7 (patch)
tree82c4c5b5ae2e8ff80d1b7cb842674b44a5f91888 /Lib
parent3e499cda47afe2282ca3f1d04151e2c86f2e7e09 (diff)
downloadcpython-a3d6d23a923d62a713b9e4536d5f7ce7313d99c7.zip
cpython-a3d6d23a923d62a713b9e4536d5f7ce7313d99c7.tar.gz
cpython-a3d6d23a923d62a713b9e4536d5f7ce7313d99c7.tar.bz2
bpo-40626: Support HDF5 in mimetypes (GH-20042)
Add hdf5 with .h5 file extension See 'Recommendations' section for mime types from the HDF group: https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/ Patch by Mark Schwab. (cherry picked from commit 60c2a810e37994fc640c58d0ef45b6843354b770) Co-authored-by: MARK SCHWAB <32745414+schwabm@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/mimetypes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index f33b658..434f5b3 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -447,6 +447,7 @@ def _default_mime_types():
'.dvi' : 'application/x-dvi',
'.gtar' : 'application/x-gtar',
'.hdf' : 'application/x-hdf',
+ '.h5' : 'application/x-hdf5',
'.latex' : 'application/x-latex',
'.mif' : 'application/x-mif',
'.cdf' : 'application/x-netcdf',