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)
| 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: |
no test coverage detected