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

Method update_last_used_indentation

Lib/_pyrepl/readline.py:184–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 return self.history[cut:]
183
184 def update_last_used_indentation(self) -> None:
185 indentation = _get_first_indentation(self.buffer)
186 if indentation is not None:
187 self.last_used_indentation = indentation
188
189 # --- simplified support for reading multiline Python statements ---
190

Callers 1

doMethod · 0.80

Calls 1

_get_first_indentationFunction · 0.85

Tested by

no test coverage detected