def update(self, value):
        assert 0 <= value <= self.maxval
        self.currval = value
        if not self._need_update() or self.finished:
            return
        if not self.start_time:
            self.start_time = time.time()
        self.seconds_elapsed = time.time() - self.start_time
        self.prev_percentage = self.percentage()
        if value != self.maxval:
            self.fd.write(self._format_line() + '\r')
        else:
            self.finished = True
            self.fd.write(self._format_line() + '\n')
Updates the progress bar to a new value.
dataset/ETHPy150Open gtaylor/django-eve-db/eve_db/ccp_importer/importers/progressbar.py/ProgressBar.update