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

Method _split_lines

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

Source from the content-addressed store, hash-verified

739 self._dedent()
740
741 def _split_lines(self, text, width):
742 text = self._whitespace_matcher.sub(' ', text).strip()
743 # The textwrap module is used only for formatting help.
744 # Delay its import for speeding up the common usage of argparse.
745 import textwrap
746 return textwrap.wrap(text, width)
747
748 def _fill_text(self, text, width, indent):
749 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