summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorMARK SCHWAB <32745414+schwabm@users.noreply.github.com>2020-06-11 13:04:13 -0600
committerGitHub <noreply@github.com>2020-06-11 15:04:13 -0400
commit60c2a810e37994fc640c58d0ef45b6843354b770 (patch)
treee6f69450329baa391c2ec393aead0734aa8214d2 /Lib
parent46398fba4d66ad342cf2504ef947b5fb857423b2 (diff)
downloadcpython-git-60c2a810e37994fc640c58d0ef45b6843354b770.tar.gz
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.
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 e972ca2e29..61bfff1635 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -448,6 +448,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',