changeset 10690 | c6290d727c0c |
parent 10672 | f6f425a54a8d |
child 10693 | be0bd5aa21b4 |
--- a/web/request.py Wed Sep 16 15:17:42 2015 +0200 +++ b/web/request.py Wed Sep 16 15:50:42 2015 +0200 @@ -967,8 +967,10 @@ def __getattribute__(self, attr): raise AuthenticationError() - def __nonzero__(self): + def __bool__(self): return False + + __nonzero__ = __bool__ class _MockAnonymousSession(object): sessionid = 'thisisnotarealsession'