MCPcopy 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
841def _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
847def _parse(

Callers 1

__init__Method · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected