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

Method remove_number

tools/python-3.11.9-amd64/Lib/nntplib.py:821–823  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

819 pat = re.compile('^([0-9]+) ?(.*)\n?')
820 resp, lines = self._longcmdstring('XHDR {0} {1}'.format(hdr, str), file)
821 def remove_number(line):
822 m = pat.match(line)
823 return m.group(1, 2) if m else line
824 return resp, [remove_number(line) for line in lines]
825
826 def xover(self, start, end, *, file=None):

Callers

nothing calls this directly

Calls 2

matchMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected