def update(self, commit=False): self.clear() ellipsis = "." * self.count write(self.string + ellipsis, commit=commit) if self.count >= self.max: self.zero() self.count += 1
def update(self, inc=True): write(self.buildString(), commit=(not self.reachedLimit())) if inc: self.inc()