equal
deleted
inserted
replaced
153 |
153 |
154 def progress(self, orig, topic, pos, item='', unit='', total=None): |
154 def progress(self, orig, topic, pos, item='', unit='', total=None): |
155 if pos is None: |
155 if pos is None: |
156 if self.topics and self.topics[-1] == topic and self.printed: |
156 if self.topics and self.topics[-1] == topic and self.printed: |
157 self.complete() |
157 self.complete() |
158 self.resetstate() |
158 self.resetstate() |
159 else: |
159 else: |
160 if topic not in self.topics: |
160 if topic not in self.topics: |
161 self.topics.append(topic) |
161 self.topics.append(topic) |
162 now = time.time() |
162 now = time.time() |
163 if now - self.lastprint > 0.1 and topic == self.topics[-1]: |
163 if now - self.lastprint > 0.1 and topic == self.topics[-1]: |