def do_logout(self, request):
        openid = request.GET.get('openid', '').strip()
        if openid:
            # Just sign out that one
            request.session[self.session_key] = [
                o for o in request.session[self.session_key] 
                if o.openid in openid
            ]
        else:
            # Sign out ALL openids
            request.session[self.session_key] = []
        request.session.modified = True
        return self.on_logged_out(request)
    
    # This class doubles up as middleware
dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/consumer.py/SessionConsumer.do_logout/operator `!=` -> `in`