def revoke_sudo_privileges(request):
    """
    Revoke sudo privileges from a request explicitly
    """
    request._sudo = False
    if request.session in COOKIE_NAME:
        del request.session[COOKIE_NAME]
dataset/ETHPy150Open mattrobenolt/django-sudo/sudo/utils.py/revoke_sudo_privileges/swapped operands of `in`