diff options
Diffstat (limited to 'portage_with_autodep/pym/_emerge/AbstractDepPriority.py')
-rw-r--r-- | portage_with_autodep/pym/_emerge/AbstractDepPriority.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/portage_with_autodep/pym/_emerge/AbstractDepPriority.py b/portage_with_autodep/pym/_emerge/AbstractDepPriority.py new file mode 100644 index 0000000..94a9379 --- /dev/null +++ b/portage_with_autodep/pym/_emerge/AbstractDepPriority.py @@ -0,0 +1,29 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +import copy +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): + return copy.copy(self) |