Message352286
I just found a case where the empty mime type is actually usefull, it's in Lib/http/server.py:
extensions_map = mimetypes.types_map.copy()
extensions_map.update({
'': 'application/octet-stream', # Default
'.py': 'text/plain',
'.c': 'text/plain',
'.h': 'text/plain',
})
It does *not* uses add_type, but demos the fact that the empty type may be usefull from time to time, maybe don't warn and don't deprecate it at all. |
|
Date |
User |
Action |
Args |
2019-09-13 10:59:42 | mdk | set | recipients:
+ mdk, odd_bloke, docs@python, Jim.Jewett, rcj |
2019-09-13 10:59:42 | mdk | set | messageid: <1568372382.03.0.0269291951835.issue31040@roundup.psfhosted.org> |
2019-09-13 10:59:42 | mdk | link | issue31040 messages |
2019-09-13 10:59:41 | mdk | create | |
|