def asrange(r): if r is None: return None return ranges.parse(r)
def asrange(r): if r is None or r == '': return None return ranges.parse(r)