Skip to content

Commit a3d6d23

Browse files
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 60c2a81) Co-authored-by: MARK SCHWAB <[email protected]>
1 parent 3e499cd commit a3d6d23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ def _default_mime_types():
447447
'.dvi' : 'application/x-dvi',
448448
'.gtar' : 'application/x-gtar',
449449
'.hdf' : 'application/x-hdf',
450+
'.h5' : 'application/x-hdf5',
450451
'.latex' : 'application/x-latex',
451452
'.mif' : 'application/x-mif',
452453
'.cdf' : 'application/x-netcdf',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add h5 file extension as MIME Type application/x-hdf5, as per HDF Group recommendation for HDF5 formatted data files. Patch contributed by Mark Schwab.

0 commit comments

Comments
 (0)