summaryrefslogtreecommitdiff
path: root/openid/extensions/sreg.py
diff options
context:
space:
mode:
Diffstat (limited to 'openid/extensions/sreg.py')
-rw-r--r--openid/extensions/sreg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/openid/extensions/sreg.py b/openid/extensions/sreg.py
index 1c5e9d6..c557e21 100644
--- a/openid/extensions/sreg.py
+++ b/openid/extensions/sreg.py
@@ -524,5 +524,8 @@ class SRegResponse(Extension):
checkFieldName(field_name)
return self.data[field_name]
- def __nonzero__(self):
+ def __bool__(self):
return bool(self.data)
+
+ def __nonzero__(self):
+ return self.__bool__()