MCPcopy Index your code
hub / github.com/python/cpython / fixdoc

Function fixdoc

Lib/idlelib/run.py:341–343  ·  view source on GitHub ↗
(fun, text)

Source from the content-addressed store, hash-verified

339
340
341def fixdoc(fun, text):
342 tem = (fun.__doc__ + '\n\n') if fun.__doc__ is not None else ''
343 fun.__doc__ = tem + textwrap.fill(textwrap.dedent(text))
344
345RECURSIONLIMIT_DELTA = 30
346

Callers 1

Calls 2

fillMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…