This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients Jim.Jewett, docs@python, mdk, odd_bloke, rcj
Date 2019-09-13.10:59:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568372382.03.0.0269291951835.issue31040@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-09-13 10:59:42mdksetrecipients: + mdk, odd_bloke, docs@python, Jim.Jewett, rcj
2019-09-13 10:59:42mdksetmessageid: <1568372382.03.0.0269291951835.issue31040@roundup.psfhosted.org>
2019-09-13 10:59:42mdklinkissue31040 messages
2019-09-13 10:59:41mdkcreate