'Loads bars for a given instrument from a CSV formatted file.
The instrument gets registered in the bar feed.
:param instrument: Instrument identifier.
:type instrument: string.
:param path: The path to the file.
:type path: string.
:param timezone: The timezone to use to localize bars. Check :mod:`pyalgotrade.marketsession`.
:type timezone: A pytz timezone.'

def addBarsFromCSV(self, instrument, path, timezone=None):

    if isinstance(timezone, int):
        raise Exception('timezone    as    an    int    parameter    is    not    supported    anymore.    Please    use    a    pytz    timezone    instead.')
    if (timezone is None):
        timezone = self.__timezone
    rowParser = RowParser(self.getFrequency(), self.getDailyBarTime(), timezone)
    super(Feed, self).addBarsFromCSV(instrument, path, rowParser)
