https://hg.python.org/cpython/file/v2.6/Lib/mimetypes.py#l335 https://hg.python.org/cpython/rev/7bbb97e14ad6