def iprange(self):
        if self.iscontiguous():
            cidrs = self.iter_cidrs()
            if not cidrs:
                return None
            return IPRange(cidrs[0][0], cidrs[-1][-1])
        else:
            raise ValueError("IPSet is not contiguous")
Generates an IPRange for this IPSet, if all its members
dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/sets.py/IPSet.iprange