MCPcopy Index your code
hub / github.com/bpython/bpython / redo

Method redo

bpython/curtsiesfrontend/repl.py:1974–1981  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1972 greenlet.greenlet(prompt_for_undo).switch()
1973
1974 def redo(self) -> None:
1975 if self.redo_stack:
1976 temp = self.redo_stack.pop()
1977 self.history.append(temp)
1978 self.all_logical_lines.append((temp, LineType.INPUT))
1979 self.push(temp)
1980 else:
1981 self.status_bar.message("Nothing to redo.")
1982
1983 def reevaluate(self, new_code=False):
1984 """bpython.Repl.undo calls this"""

Callers 1

process_key_eventMethod · 0.95

Calls 3

pushMethod · 0.95
appendMethod · 0.80
messageMethod · 0.45

Tested by

no test coverage detected