src/pylib/private/inspect_cleandoc

Search:
Group by:
Source   Edit  

Procs

func inspect.cleandoc(doc: openArray[char]): string {....raises: [], tags: [],
    forbids: [].}

Clean up indentation from docstrings.

Any whitespace that can be uniformly removed from the second line onwards is removed.

Note: this is also used as _PyCompile_CleanDoc here. Nim itself will trace the fileno of the file being

compiled. no need to keep the leading adn tailing blank lines like Python/compile.c: _PyCompile_CleanDoc does.

Source   Edit