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)
| 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]+(.*)$') |
nothing calls this directly
no test coverage detected