def __call__(self, astring):
        try:
            value = int(astring, 0)
        except ValueError:
            return None
        if not 0 <= value <= self.limit:
            return None
        return value
dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/xlwt3/Style.py/IntULim.__call__/original