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

Function reindent

Lib/timeit.py:78–80  ·  view source on GitHub ↗

Helper to reindent a multi-line statement.

(src, indent)

Source from the content-addressed store, hash-verified

76
77
78def reindent(src, indent):
79 """Helper to reindent a multi-line statement."""
80 return src.replace("\n", "\n" + " " * indent)
81
82
83class Timer:

Callers 1

__init__Method · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected