def localize(dateTime, timeZone):

    if datetime_is_naive(dateTime):
        ret = timeZone.localize(dateTime)
    else:
        ret = dateTime.astimezone(timeZone)
    return ret
Get a COM attribute.
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/utils/dt.py/localize--crossover with--dataset/ETHPy150Open enthought/comtypes/comtypes/client/lazybind.py/Dispatch.__getattr__