Lines Matching refs:resp
156 resp = self.shortcmd('authinfo user '+user)
157 if resp[:3] == '381':
159 raise NNTPReplyError(resp)
161 resp = self.shortcmd(
163 if resp[:3] != '281':
164 raise NNTPPermanentError(resp)
223 resp = self.getline()
224 if self.debugging: print '*resp*', repr(resp)
225 c = resp[:1]
227 raise NNTPTemporaryError(resp)
229 raise NNTPPermanentError(resp)
231 raise NNTPProtocolError(resp)
232 return resp
244 resp = self.getresp()
245 if resp[:3] not in LONGRESP:
246 raise NNTPReplyError(resp)
263 return resp, list
302 resp, list = self.longcmd('LIST', file)
306 return resp, list
321 resp, lines = self.descriptions(group)
331 resp, raw_lines = self.longcmd('LIST NEWSGROUPS ' + group_pattern)
332 if resp[:3] != "215":
336 resp, raw_lines = self.longcmd('XGTITLE ' + group_pattern)
342 return resp, lines
354 resp = self.shortcmd('GROUP ' + name)
355 if resp[:3] != '211':
356 raise NNTPReplyError(resp)
357 words = resp.split()
368 return resp, count, first, last, name
377 def statparse(self, resp): argument
379 if resp[:2] != '22':
380 raise NNTPReplyError(resp)
381 words = resp.split()
389 return resp, nr, id
393 resp = self.shortcmd(line)
394 return self.statparse(resp)
416 resp, list = self.longcmd(line, file)
417 resp, nr, id = self.statparse(resp)
418 return resp, nr, id, list
470 resp, lines = self.longcmd('XHDR ' + hdr + ' ' + str, file)
476 return resp, lines
487 resp, lines = self.longcmd('XOVER ' + start + '-' + end, file)
502 return resp,xover_lines
512 resp, raw_lines = self.longcmd('XGTITLE ' + group, file)
518 return resp, lines
527 resp = self.shortcmd("XPATH " + id)
528 if resp[:3] != '223':
529 raise NNTPReplyError(resp)
531 [resp_num, path] = resp.split()
533 raise NNTPReplyError(resp)
535 return resp, path
545 resp = self.shortcmd("DATE")
546 if resp[:3] != '111':
547 raise NNTPReplyError(resp)
548 elem = resp.split()
550 raise NNTPDataError(resp)
554 raise NNTPDataError(resp)
555 return resp, date, time
564 resp = self.shortcmd('POST')
566 if resp[0] != '3':
567 raise NNTPReplyError(resp)
588 resp = self.shortcmd('IHAVE ' + id)
590 if resp[0] != '3':
591 raise NNTPReplyError(resp)
608 resp = self.shortcmd('QUIT')
612 return resp
628 resp, count, first, last, name = s.group('comp.lang.python') variable
629 print resp
631 resp, subs = s.xhdr('subject', first + '-' + last) variable
632 print resp
635 resp = s.quit() variable
636 print resp