class IpRange(Range): def __init__(self, range): Range.__init__(self, range) self.range = IpRangeTester(range) def __contains__(self, node): return self.range.test(node.ip)
def __init__(self, range): Range.__init__(self, range) self.range = IpRangeTester(range)