MCPcopy Index your code
hub / github.com/python/cpython / undo

Method undo

Lib/idlelib/undo.py:328–332  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

326 cmd.redo(text)
327
328 def undo(self, text):
329 cmds = self.cmds[:]
330 cmds.reverse()
331 for cmd in cmds:
332 cmd.undo(text)
333
334 def bump_depth(self, incr=1):
335 self.depth = self.depth + incr

Callers

nothing calls this directly

Calls 2

reverseMethod · 0.45
undoMethod · 0.45

Tested by

no test coverage detected