(self, index: int)
| 468 | return None # like readline.c |
| 469 | |
| 470 | def remove_history_item(self, index: int) -> None: |
| 471 | history = self.get_reader().history |
| 472 | if 0 <= index < len(history): |
| 473 | del history[index] |
| 474 | else: |
| 475 | raise ValueError("No history item at position %d" % index) |
| 476 | # like readline.c |
| 477 | |
| 478 | def replace_history_item(self, index: int, line: str) -> None: |
| 479 | history = self.get_reader().history |
nothing calls this directly
no test coverage detected