Lines Matching refs:resp
10 >>> resp, count, first, last, name = s.group('comp.lang.python')
13 >>> resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last))
14 >>> resp = s.quit()
17 Here 'resp' is the server response line.
22 >>> resp = s.post(f)
421 resp, caps = self.capabilities()
481 resp = self._getline()
482 if self.debugging: print('*resp*', repr(resp))
483 resp = resp.decode(self.encoding, self.errors)
484 c = resp[:1]
486 raise NNTPTemporaryError(resp)
488 raise NNTPPermanentError(resp)
490 raise NNTPProtocolError(resp)
491 return resp
508 resp = self._getresp()
509 if resp[:3] not in _LONGRESP:
510 raise NNTPReplyError(resp)
537 return resp, lines
557 resp, list = self._getlongresp(file)
558 return resp, [line.decode(self.encoding, self.errors)
569 resp, lines = self._longcmdstring("LIST OVERVIEW.FMT")
585 - resp: server response if successful
590 resp, lines = self._longcmdstring("CAPABILITIES")
594 return resp, caps
600 - resp: server response if successful
609 resp, lines = self._longcmdstring(cmd, file)
610 return resp, self._grouplist(lines)
617 - resp: server response if successful
633 - resp: server response if successful
640 resp, lines = self._longcmdstring(command, file)
641 return resp, self._grouplist(lines)
646 resp, lines = self._longcmdstring('LIST NEWSGROUPS ' + group_pattern)
647 if not resp.startswith('215'):
651 resp, lines = self._longcmdstring('XGTITLE ' + group_pattern)
661 return resp, groups
687 - resp: server response if successful
693 resp = self._shortcmd('GROUP ' + name)
694 if not resp.startswith('211'):
695 raise NNTPReplyError(resp)
696 words = resp.split()
707 return resp, int(count), int(first), int(last), name
713 - resp: server response if successful
719 def _statparse(self, resp):
722 if not resp.startswith('22'):
723 raise NNTPReplyError(resp)
724 words = resp.split()
727 return resp, art_num, message_id
731 resp = self._shortcmd(line)
732 return self._statparse(resp)
739 - resp: server response if successful
758 resp, lines = self._longcmd(line, file)
759 resp, art_num, message_id = self._statparse(resp)
760 return resp, ArticleInfo(art_num, message_id, lines)
767 - resp: server response if successful
781 - resp: server response if successful
795 - resp: server response if successful
806 - resp: server response if successful
816 - resp: server response if successful
820 resp, lines = self._longcmdstring('XHDR {0} {1}'.format(hdr, str), file)
824 return resp, [remove_number(line) for line in lines]
832 - resp: server response if successful
835 resp, lines = self._longcmdstring('XOVER {0}-{1}'.format(start, end),
838 return resp, _parse_overview(lines, fmt)
852 - resp: server response if successful
863 resp, lines = self._longcmdstring(cmd, file)
865 return resp, _parse_overview(lines, fmt)
870 - resp: server response if successful
873 resp = self._shortcmd("DATE")
874 if not resp.startswith('111'):
875 raise NNTPReplyError(resp)
876 elem = resp.split()
878 raise NNTPDataError(resp)
881 raise NNTPDataError(resp)
882 return resp, _parse_datetime(date, None)
885 resp = self._shortcmd(command)
887 if not resp.startswith('3'):
888 raise NNTPReplyError(resp)
909 - resp: server response if successful"""
917 - resp: server response if successful
931 - resp: server response if successful"""
933 resp = self._shortcmd('QUIT')
936 return resp
960 resp = self._shortcmd('authinfo user ' + user)
961 if resp.startswith('381'):
963 raise NNTPReplyError(resp)
965 resp = self._shortcmd('authinfo pass ' + password)
966 if not resp.startswith('281'):
967 raise NNTPPermanentError(resp)
1003 resp = self._shortcmd('STARTTLS')
1004 if resp.startswith('382'):
1075 resp, count, first, last, name = s.group(args.group)
1084 resp, overviews = s.xover(first, last)