in iptables.py [0:0]
def __eq__(self, other):
if isinstance(other, Entry):
return self.as_net == other.as_net
if isinstance(other, netaddr.IPNetwork):
return self.as_net == other
if isinstance(other, str):
return self.source == other or str(self.as_net) == other
return False