X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/066b7ef8b45149aec09d41ca74b08d0b8711cb13..865ddb235489f38afd7043ee269e4f958474bd5a:/pymin/services/nat/__init__.py?ds=inline diff --git a/pymin/services/nat/__init__.py b/pymin/services/nat/__init__.py index 63fdd32..c22783f 100644 --- a/pymin/services/nat/__init__.py +++ b/pymin/services/nat/__init__.py @@ -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,