MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / reformat_string

Function reformat_string

tools/python-3.11.9-amd64/Tools/scripts/pindent.py:365–370  ·  view source on GitHub ↗
(source, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS)

Source from the content-addressed store, hash-verified

363# end def delete_string
364
365def reformat_string(source, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS):
366 input = io.StringIO(source)
367 output = io.StringIO()
368 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
369 pi.reformat()
370 return output.getvalue()
371# end def reformat_string
372
373def make_backup(filename):

Callers 1

reformat_fileFunction · 0.85

Calls 3

reformatMethod · 0.95
getvalueMethod · 0.95
PythonIndenterClass · 0.85

Tested by

no test coverage detected