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

Method _histline

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

Source from the content-addressed store, hash-verified

414 return "".join(sorted(self.config.completer_delims))
415
416 def _histline(self, line: str) -> str:
417 line = line.rstrip("\n")
418 return line
419
420 def get_history_length(self) -> int:
421 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