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

Method list

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

Process a LIST or LIST ACTIVE command. Arguments: - group_pattern: a pattern indicating which groups to query - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of (group, last, first,

(self, group_pattern=None, *, file=None)

Source from the content-addressed store, hash-verified

626 return self._longcmdstring(cmd, file)
627
628 def list(self, group_pattern=None, *, file=None):
629 """Process a LIST or LIST ACTIVE command. Arguments:
630 - group_pattern: a pattern indicating which groups to query
631 - file: Filename string or file object to store the result in
632 Returns:
633 - resp: server response if successful
634 - list: list of (group, last, first, flag) (strings)
635 """
636 if group_pattern is not None:
637 command = 'LIST ACTIVE ' + group_pattern
638 else:
639 command = 'LIST'
640 resp, lines = self._longcmdstring(command, file)
641 return resp, self._grouplist(lines)
642
643 def _getdescriptions(self, group_pattern, return_all):
644 line_pat = re.compile('^(?P<group>[^ \t]+)[ \t]+(.*)$')

Callers

nothing calls this directly

Calls 2

_longcmdstringMethod · 0.95
_grouplistMethod · 0.95

Tested by

no test coverage detected