def invalidatePassword(keyDesc):
    if not _keyutils:
        return
    try:
        keyId = _keyutils.search(_keyring, keyDesc)
        _keyutils.revoke(keyId)
    except __HOLE__:
        # Old keyutils, oh well
        return
    except _keyutils.Error as err:
        if err.args[0] != _keyutils.EKEYREVOKED:
            raise
        # Close enough
dataset/ETHPy150Open sassoftware/conary/conary/lib/keystore.py/invalidatePassword