MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _split_lines

Method _split_lines

tools/python-3.11.9-amd64/Lib/argparse.py:655–660  ·  view source on GitHub ↗
(self, text, width)

Source from the content-addressed store, hash-verified

653 self._dedent()
654
655 def _split_lines(self, text, width):
656 text = self._whitespace_matcher.sub(' ', text).strip()
657 # The textwrap module is used only for formatting help.
658 # Delay its import for speeding up the common usage of argparse.
659 import textwrap
660 return textwrap.wrap(text, width)
661
662 def _fill_text(self, text, width, indent):
663 text = self._whitespace_matcher.sub(' ', text).strip()

Callers 1

_format_actionMethod · 0.95

Calls 3

stripMethod · 0.80
subMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected