Lines Matching refs:lines

58 #   arbitrary iterables yielding lines.
92 # reading arbitrary length lines. RFC 3977 limits NNTP line length to
151 "subject", "from", "date", "message-id", "references", ":bytes", ":lines"]
156 'lines': ':lines',
166 ['number', 'message_id', 'lines'])
181 def _parse_overview_fmt(lines):
187 for line in lines:
206 def _parse_overview(lines, fmt, data_process_func=None):
211 for line in lines:
439 2: also print raw lines read and sent before stripping CR/LF"""
497 Returns a (response, lines) tuple where `response` is a unicode
498 string and `lines` is a list of bytes objects.
512 lines = []
514 # XXX lines = None instead?
531 lines.append(line)
537 return resp, lines
553 Same as _longcmd() and _getlongresp(), except that the returned `lines`
569 resp, lines = self._longcmdstring("LIST OVERVIEW.FMT")
574 fmt = _parse_overview_fmt(lines)
578 def _grouplist(self, lines):
579 # Parse lines into "group last first flag"
580 return [GroupInfo(*line.split()) for line in lines]
590 resp, lines = self._longcmdstring("CAPABILITIES")
591 for line in lines:
609 resp, lines = self._longcmdstring(cmd, file)
610 return resp, self._grouplist(lines)
640 resp, lines = self._longcmdstring(command, file)
641 return resp, self._grouplist(lines)
646 resp, lines = self._longcmdstring('LIST NEWSGROUPS ' + group_pattern)
651 resp, lines = self._longcmdstring('XGTITLE ' + group_pattern)
653 for raw_line in lines:
758 resp, lines = self._longcmd(line, file)
760 return resp, ArticleInfo(art_num, message_id, lines)
768 - ArticleInfo: (article number, message id, list of header lines)
782 - ArticleInfo: (article number, message id, list of body lines)
796 - ArticleInfo: (article number, message id, list of article lines)
820 resp, lines = self._longcmdstring('XHDR {0} {1}'.format(hdr, str), file)
824 return resp, [remove_number(line) for line in lines]
835 resp, lines = self._longcmdstring('XOVER {0}-{1}'.format(start, end),
838 return resp, _parse_overview(lines, fmt)
863 resp, lines = self._longcmdstring(cmd, file)
865 return resp, _parse_overview(lines, fmt)
1088 lines = int(over[':lines'])
1090 artnum, cut(author, 20), cut(subject, 42), lines)