]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/nat/__init__.py
Add a default __cmp__() implementation to pymin.seqtool.Sequence.
[software/pymin.git] / pymin / services / nat / __init__.py
index 63fdd3288921907dce50551e39a85f0e613ba0f8..c22783ff1d4a17a2f723c38e72a05a013adfe770 100644 (file)
@@ -57,10 +57,6 @@ class PortForward(Sequence):
         if src_net is not None: self.src_net = src_net
         if dst_net is not None: self.dst_net = dst_net
 
-    def __cmp__(self, other):
-        r"Compares two PortForward objects."
-        return cmp(self.as_tuple(), other.as_tuple())
-
     def as_tuple(self):
         r"Return a tuple representing the port forward."
         return (self.dev, self.protocol, self.port, self.dst, self.dst_port,