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

Function reindent

Lib/timeit.py:82–84  ·  view source on GitHub ↗

Helper to reindent a multi-line statement.

(src, indent)

Source from the content-addressed store, hash-verified

80
81
82def reindent(src, indent):
83 """Helper to reindent a multi-line statement."""
84 return src.replace("\n", "\n" + " " * indent)
85
86
87class Timer:

Callers 1

__init__Method · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…