Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EasyIME/PIME
/ _format_code
Function
_format_code
python/python3/tornado/template.py:841–844 ·
view source on GitHub ↗
(code: str)
Source
from the content-addressed store, hash-verified
839
840
841
def
_format_code(code: str) -> str:
842
lines = code.splitlines()
843
format =
"%%%dd %%s\n"
% len(repr(len(lines) + 1))
844
return
""
.join([format % (i + 1, line)
for
(i, line) in enumerate(lines)])
845
846
847
def
_parse(
Callers
1
__init__
Method · 0.85
Calls
1
join
Method · 0.80
Tested by
no test coverage detected