aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/GeneralObject.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/GeneralObject.py')
-rw-r--r--wqflask/base/GeneralObject.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/base/GeneralObject.py b/wqflask/base/GeneralObject.py
index 707569db..0122ee32 100644
--- a/wqflask/base/GeneralObject.py
+++ b/wqflask/base/GeneralObject.py
@@ -61,5 +61,6 @@ class GeneralObject:
s += '%s = %s\n' % (key, self.__dict__[key])
return s
- def __cmp__(self, other):
- return len(list(self.__dict__.keys())).__cmp__(len(list(other.__dict__.keys())))
+ def __eq__(self, other):
+ return (len(list(self.__dict__.keys())) ==
+ len(list(other.__dict__.keys())))