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

Method capabilities

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

Process a CAPABILITIES command. Not supported by all servers. Return: - resp: server response if successful - caps: a dictionary mapping capability names to lists of tokens (for example {'VERSION': ['2'], 'OVER': [], LIST: ['ACTIVE', 'HEADERS'] })

(self)

Source from the content-addressed store, hash-verified

580 return [GroupInfo(*line.split()) for line in lines]
581
582 def capabilities(self):
583 """Process a CAPABILITIES command. Not supported by all servers.
584 Return:
585 - resp: server response if successful
586 - caps: a dictionary mapping capability names to lists of tokens
587 (for example {'VERSION': ['2'], 'OVER': [], LIST: ['ACTIVE', 'HEADERS'] })
588 """
589 caps = {}
590 resp, lines = self._longcmdstring("CAPABILITIES")
591 for line in lines:
592 name, *tokens = line.split()
593 caps[name] = tokens
594 return resp, caps
595
596 def newgroups(self, date, *, file=None):
597 """Process a NEWGROUPS command. Arguments:

Callers 1

getcapabilitiesMethod · 0.95

Calls 2

_longcmdstringMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected