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

Function fixdoc

tools/python-3.11.9-amd64/Lib/idlelib/run.py:333–335  ·  view source on GitHub ↗
(fun, text)

Source from the content-addressed store, hash-verified

331
332
333def fixdoc(fun, text):
334 tem = (fun.__doc__ + '\n\n') if fun.__doc__ is not None else ''
335 fun.__doc__ = tem + textwrap.fill(textwrap.dedent(text))
336
337RECURSIONLIMIT_DELTA = 30
338

Callers 1

Calls 2

dedentMethod · 0.80
fillMethod · 0.45

Tested by

no test coverage detected