def integer_range(minimum_val, maximum_val):

    def integer_range_checker(x):
        i = int(x)
        if ((i < minimum_val) or (i > maximum_val)):
            raise ValueError(('Integer must be between %d and %d' % (minimum_val, maximum_val)))
        return x
    return integer_range_checker
def integer_range(minimum_val, maximum_val):

    def integer_range_checker(x):
        i = int(x)
        if ((i < minimum_val) or (i > maximum_val)):
            raise ValueError(('Integer must be between %d and %d' % (minimum_val, maximum_val)))
        return x
    return integer_range_checker