Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
78
def
reindent(src, indent):
79
""
"Helper to reindent a multi-line statement."
""
80
return
src.replace(
"\n"
,
"\n"
+
" "
* indent)
81
82
83
class
Timer:
Callers
1
__init__
Method · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected