MCPcopy Create free account
hub / github.com/ipython/ipython / _add_indent

Function _add_indent

IPython/core/inputsplitter.py:160–162  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

158 # Find the indents used before
159 prev_indents = [0]
160 def _add_indent(n):
161 if n != prev_indents[-1]:
162 prev_indents.append(n)
163
164 tokiter = iter(tokens)
165 for tok in tokiter:

Callers 1

find_next_indentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected