MCPcopy Index your code
hub / github.com/RustPython/RustPython / _split_lines

Method _split_lines

Lib/argparse.py:684–689  ·  view source on GitHub ↗
(self, text, width)

Source from the content-addressed store, hash-verified

682 self._dedent()
683
684 def _split_lines(self, text, width):
685 text = self._whitespace_matcher.sub(' ', text).strip()
686 # The textwrap module is used only for formatting help.
687 # Delay its import for speeding up the common usage of argparse.
688 import textwrap
689 return textwrap.wrap(text, width)
690
691 def _fill_text(self, text, width, indent):
692 text = self._whitespace_matcher.sub(' ', text).strip()

Callers 1

_format_actionMethod · 0.95

Calls 3

stripMethod · 0.45
subMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected