def integer(x):
    try:
        int(x)
    except (ValueError, __HOLE__):
        raise ValueError("%r is not a valid integer" % x)
    else:
        return x
dataset/ETHPy150Open cloudtools/troposphere/troposphere/validators.py/integer