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

Method _statparse

tools/python-3.11.9-amd64/Lib/nntplib.py:719–727  ·  view source on GitHub ↗

Internal: parse the response line of a STAT, NEXT, LAST, ARTICLE, HEAD or BODY command.

(self, resp)

Source from the content-addressed store, hash-verified

717 return self._longcmdstring('HELP', file)
718
719 def _statparse(self, resp):
720 """Internal: parse the response line of a STAT, NEXT, LAST,
721 ARTICLE, HEAD or BODY command."""
722 if not resp.startswith('22'):
723 raise NNTPReplyError(resp)
724 words = resp.split()
725 art_num = int(words[1])
726 message_id = words[2]
727 return resp, art_num, message_id
728
729 def _statcmd(self, line):
730 """Internal: process a STAT, NEXT or LAST command."""

Callers 2

_statcmdMethod · 0.95
_artcmdMethod · 0.95

Calls 3

NNTPReplyErrorClass · 0.85
startswithMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected