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

Method _format_text

Lib/optparse.py:249–260  ·  view source on GitHub ↗

Format a paragraph of free-form text for inclusion in the help output at the current indentation level.

(self, text)

Source from the content-addressed store, hash-verified

247 raise NotImplementedError("subclasses must implement")
248
249 def _format_text(self, text):
250 """
251 Format a paragraph of free-form text for inclusion in the
252 help output at the current indentation level.
253 """
254 import textwrap
255 text_width = max(self.width - self.current_indent, 11)
256 indent = " "*self.current_indent
257 return textwrap.fill(text,
258 text_width,
259 initial_indent=indent,
260 subsequent_indent=indent)
261
262 def format_description(self, description):
263 if description:

Callers 2

format_descriptionMethod · 0.95
format_epilogMethod · 0.95

Calls 2

maxFunction · 0.85
fillMethod · 0.45

Tested by

no test coverage detected