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

Function remove_one_indent

scripts/whats_left.py:437–439  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

435
436
437def remove_one_indent(s):
438 indent = " "
439 return s[len(indent) :] if s.startswith(indent) else s
440
441
442compare_src = inspect.getsourcelines(compare)[0][1:]

Callers 1

whats_left.pyFile · 0.85

Calls 2

lenFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected