def positive_integer(x):
    p = integer(x)
    if (int(p) < 0):
        raise ValueError(('%r is not a positive integer' % x))
    return x
def positive_integer(x):
    p = integer(x)
    if (int(p) < 0):
        raise ValueError(('%r is not a positive integer' % x))
    return x