Method: pylint.utils.utils.normalize_text
Calls: 778, Exceptions: 0, Paths: 1Back
Path 1: 778 calls (1.0)
'Analyse import fallback blocks. This can be used to support both Python 2 and 3 compatible code, which means that the block might have code that exis...
79 (778)
' ' (498) '# ' (280)
' Dummy long desc This message belongs to the dummy_plugin checker.' (2) '# Analyse import fallback blocks. This can be used to support both Python 2...
1def normalize_text(
2 text: str, line_len: int = DEFAULT_LINE_LENGTH, indent: str = ""
3) -> str:
4 """Wrap the text on the given line length."""
5 return "\n".join(
6 textwrap.wrap(
7 text, width=line_len, initial_indent=indent, subsequent_indent=indent
8 )
9 )