def postcmd(self, stop, line): self.queue.append(line) self.prompt = prompt % str(len(self.queue)) return CLI.postcmd(self, stop, line)