You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
a490d0ac58
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@86375 d073be05-634f-4543-b044-5fe20cf6d1d6
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
--- axiom/item.py.orig 2010-01-14 14:42:26.000000000 +0100
|
|
+++ axiom/item.py 2010-01-14 14:42:58.000000000 +0100
|
|
@@ -101,6 +101,36 @@
|
|
(other.typeName, other.schemaVersion))
|
|
return NotImplemented
|
|
|
|
+ def __lt__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) < (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
+ def __gt__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) > (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
+ def __le__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) <= (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
+ def __ge__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) >= (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
+ def __eq__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) == (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
+ def __ne__(self, other):
|
|
+ if isinstance(other, MetaItem):
|
|
+ return (self.typeName, self.schemaVersion) != (other.typeName, other.schemaVersion)
|
|
+ return NotImplemented
|
|
+
|
|
|
|
def noop():
|
|
pass
|