summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/AbstractDepPriority.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/AbstractDepPriority.py')
-rw-r--r--pym/_emerge/AbstractDepPriority.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/pym/_emerge/AbstractDepPriority.py b/pym/_emerge/AbstractDepPriority.py
new file mode 100644
index 000000000..840054d02
--- /dev/null
+++ b/pym/_emerge/AbstractDepPriority.py
@@ -0,0 +1,26 @@
+from _emerge.SlotObject import SlotObject
+class AbstractDepPriority(SlotObject):
+ __slots__ = ("buildtime", "runtime", "runtime_post")
+
+ def __lt__(self, other):
+ return self.__int__() < other
+
+ def __le__(self, other):
+ return self.__int__() <= other
+
+ def __eq__(self, other):
+ return self.__int__() == other
+
+ def __ne__(self, other):
+ return self.__int__() != other
+
+ def __gt__(self, other):
+ return self.__int__() > other
+
+ def __ge__(self, other):
+ return self.__int__() >= other
+
+ def copy(self):
+ import copy
+ return copy.copy(self)
+