1 diff -Naur a/python3/omniORB/__init__.py b/python3/omniORB/__init__.py
2 --- a/python3/omniORB/__init__.py 2015-06-08 13:39:59.000000000 +0200
3 +++ b/python3/omniORB/__init__.py 2017-05-09 14:57:00.521302183 +0200
8 - def __cmp__(self, other):
9 + def __eq__(self, other):
11 if isinstance(other, EnumItem):
12 if other._parent_id == self._parent_id:
13 - return cmp(self._v, other._v)
14 + return self._v == other._v
16 - return cmp(self._parent_id, other._parent_id)
17 + return self._parent_id == other._parent_id
19 - return cmp(id(self), id(other))
20 + return id(self) == id(other)
22 - return cmp(id(self), id(other))
23 + return id(self) == id(other)
25 + def __lt__(self, other):
27 + if isinstance(other, EnumItem):
28 + if other._parent_id == self._parent_id:
29 + return self._v < other._v
31 + return self._parent_id < other._parent_id
33 + return id(self) < id(other)
35 + return id(self) < id(other)
37 + def __le__(self, other):
39 + if isinstance(other, EnumItem):
40 + if other._parent_id == self._parent_id:
41 + return self._v <= other._v
43 + return self._parent_id <= other._parent_id
45 + return id(self) <= id(other)
47 + return id(self) <= id(other)
49 + def __gt__(self, other):
51 + if isinstance(other, EnumItem):
52 + if other._parent_id == self._parent_id:
53 + return self._v > other._v
55 + return self._parent_id > other._parent_id
57 + return id(self) > id(other)
59 + return id(self) > id(other)
61 + def __ge__(self, other):
63 + if isinstance(other, EnumItem):
64 + if other._parent_id == self._parent_id:
65 + return self._v >= other._v
67 + return self._parent_id >= other._parent_id
69 + return id(self) >= id(other)
71 + return id(self) >= id(other)
74 return hash(self._parent_id + "/" + self._n)