def __call__(self, obj):
        obj = int(obj)
        if obj < self.start or obj > self.end:
            raise ValueError("Not in range [%d..%d]" % (self.start, self.end))
        return obj
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/cli/switches.py/Range.__call__/original