def iso8601_to_datetime(iso8601_time):
    iso8601_time = _SUBSECOND_RE.sub('', iso8601_time)
    try:
        return datetime.strptime(iso8601_time, boto.utils.ISO8601)
    except __HOLE__:
        return datetime.strptime(iso8601_time, _RFC1123)
dataset/ETHPy150Open Yelp/mrjob/mrjob/parse.py/iso8601_to_datetime