def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        starttz = getattr(self._vevents[self.ref]['DTSTART'].dt, 'tzinfo', None)
        if starttz is None:
            starttz = self._locale['default_timezone']
        try:
            endtz = getattr(self._vevents[self.ref]['DTEND'].dt, 'tzinfo', None)
        except __HOLE__:
            endtz = starttz
        if endtz is None:
            endtz = self._locale['default_timezone']
        try:
            self._start = self._start.astimezone(starttz)
            self._end = self._end.astimezone(endtz)
        except ValueError:
            self._start = starttz.localize(self._start)
            self._end = endtz.localize(self._end)
dataset/ETHPy150Open pimutils/khal/khal/khalendar/event.py/LocalizedEvent.__init__