def parse_datetime(dateTime):
    try:
        ret = datetime.datetime.strptime(dateTime, "%Y-%m-%d %H:%M:%S")
    except __HOLE__:
        ret = datetime.datetime.strptime(dateTime, "%Y-%m-%d %H:%M:%S.%f")
    return dt.as_utc(ret)
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/bitstamp/httpclient.py/parse_datetime