Skip to content

Commit 60c2a81

Browse files
authored
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.
1 parent 46398fb commit 60c2a81

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
@@ -448,6 +448,7 @@ def _default_mime_types():
448448
'.dvi' : 'application/x-dvi',
449449
'.gtar' : 'application/x-gtar',
450450
'.hdf' : 'application/x-hdf',
451+
'.h5' : 'application/x-hdf5',
451452
'.latex' : 'application/x-latex',
452453
'.mif' : 'application/x-mif',
453454
'.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)