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

Method _histline

Lib/_pyrepl/readline.py:409–411  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

407 return "".join(sorted(self.config.completer_delims))
408
409 def _histline(self, line: str) -> str:
410 line = line.rstrip("\n")
411 return line
412
413 def get_history_length(self) -> int:
414 return self.saved_history_length

Callers 3

read_history_fileMethod · 0.95
replace_history_itemMethod · 0.95
add_historyMethod · 0.95

Calls 1

rstripMethod · 0.45

Tested by

no test coverage detected