]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/seqtools.py
Convert Rule to Item for validation in firewall service handler.
[software/pymin.git] / pymin / seqtools.py
index 4a6338adf28acf9d85626349f6266e0fe077ff4b..14941afc96338ae8764ff10ee769d05c9e9bc62a 100644 (file)
@@ -48,6 +48,9 @@ class Sequence:
     def __repr__(self):
         return str(self)
 
     def __repr__(self):
         return str(self)
 
+    def __cmp__(self, other):
+        return cmp(self.as_tuple(), other.as_tuple())
+
 def as_tuple(obj):
     r"""as_tuple(obj) -> tuple :: Convert objects to tuple.
 
 def as_tuple(obj):
     r"""as_tuple(obj) -> tuple :: Convert objects to tuple.