MCPcopy Index your code
hub / github.com/RustPython/RustPython / finish

Method finish

Lib/_pyrepl/historical_reader.py:409–416  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

407 p = len(s)
408
409 def finish(self) -> None:
410 super().finish()
411 ret = self.get_unicode()
412 for i, t in self.transient_history.items():
413 if i < len(self.history) and i != self.historyi:
414 self.history[i] = t
415 if ret and should_auto_add_history:
416 self.history.append(ret)
417
418
419should_auto_add_history = True

Callers

nothing calls this directly

Calls 5

superClass · 0.85
lenFunction · 0.85
get_unicodeMethod · 0.80
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected