MCPcopy
hub / github.com/csev/py4e / format_string

Method format_string

code3/bs4/element.py:156–164  ·  view source on GitHub ↗

Format the given string using the given formatter.

(self, s, formatter='minimal')

Source from the content-addressed store, hash-verified

154 }
155
156 def format_string(self, s, formatter='minimal'):
157 """Format the given string using the given formatter."""
158 if not isinstance(formatter, collections.Callable):
159 formatter = self._formatter_for_name(formatter)
160 if formatter is None:
161 output = s
162 else:
163 output = formatter(s)
164 return output
165
166 @property
167 def _is_xml(self):

Callers 3

output_readyMethod · 0.45
output_readyMethod · 0.45
decodeMethod · 0.45

Calls 1

_formatter_for_nameMethod · 0.95

Tested by

no test coverage detected