Ensurepip failing with "Access is denied" error when attempting to read Windows registry

Wow, yeah, just commenting out this

        #Accelerated function if it is available
        if _mimetypes_read_windows_registry:
            _mimetypes_read_windows_registry(add_type)

and skipping straight to the winreg module fallback makes everything work again. Hmm.