Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
437
def
remove_one_indent(s):
438
indent =
" "
439
return
s[len(indent) :]
if
s.startswith(indent)
else
s
440
441
442
compare_src = inspect.getsourcelines(compare)[0][1:]
Callers
1
whats_left.py
File · 0.85
Calls
2
len
Function · 0.85
startswith
Method · 0.45
Tested by
no test coverage detected