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

Method strip

Lib/configparser.py:599–600  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

597 self.pattern = re.compile('|'.join(itertools.chain(full_patterns, inline_patterns)))
598
599 def strip(self, text):
600 return self.pattern.sub('', text).rstrip()
601
602 def wrap(self, text):
603 return _Line(text, self)

Callers 2

__init__Method · 0.45
_handle_optionMethod · 0.45

Calls 2

rstripMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected