def configure(self, min=None, max=None, length=None):
        if length is not None:
            min, max = length, length

        if min is None and max is None:
            self.regex = "([^/.]+)"
        elif min == max:
            self.regex = "([^/.]{%d})" % min
        elif max is None:
            self.regex = "([^/.]{%d,})" % min
        else:
            self.regex = "([^/.]{%d,%d})" % (min, max)
dataset/ETHPy150Open ecdavis/pants/pants/web/application.py/DomainPart.configure/original