def parse_ts(ts):
    try:
        dt = datetime.datetime.strptime(ts, ISO8601)
        return dt
    except __HOLE__:
        dt = datetime.datetime.strptime(ts, ISO8601_MS)
        return dt
dataset/ETHPy150Open radlab/sparrow/deploy/third_party/boto-2.1.1/boto/utils.py/parse_ts