Home | History | Annotate | Download | only in python2.7

Lines Matching refs:resp

7 >>> resp, count, first, last, name = s.group('comp.lang.python')
10 >>> resp, subs = s.xhdr('subject', first + '-' + last)
11 >>> resp = s.quit()
14 Here 'resp' is the server response line.
19 >>> resp = s.post(f)
149 resp = self.shortcmd('authinfo user '+user)
150 if resp[:3] == '381':
152 raise NNTPReplyError(resp)
154 resp = self.shortcmd(
156 if resp[:3] != '281':
157 raise NNTPPermanentError(resp)
214 resp = self.getline()
215 if self.debugging: print '*resp*', repr(resp)
216 c = resp[:1]
218 raise NNTPTemporaryError(resp)
220 raise NNTPPermanentError(resp)
222 raise NNTPProtocolError(resp)
223 return resp
235 resp = self.getresp()
236 if resp[:3] not in LONGRESP:
237 raise NNTPReplyError(resp)
254 return resp, list
271 - resp: server response if successful
282 - resp: server response if successful
290 - resp: server response if successful
293 resp, list = self.longcmd('LIST', file)
297 return resp, list
312 resp, lines = self.descriptions(group)
322 resp, raw_lines = self.longcmd('LIST NEWSGROUPS ' + group_pattern)
323 if resp[:3] != "215":
327 resp, raw_lines = self.longcmd('XGTITLE ' + group_pattern)
333 return resp, lines
339 - resp: server response if successful
345 resp = self.shortcmd('GROUP ' + name)
346 if resp[:3] != '211':
347 raise NNTPReplyError(resp)
348 words = resp.split()
359 return resp, count, first, last, name
363 - resp: server response if successful
368 def statparse(self, resp):
370 if resp[:2] != '22':
371 raise NNTPReplyError(resp)
372 words = resp.split()
380 return resp, nr, id
384 resp = self.shortcmd(line)
385 return self.statparse(resp)
391 - resp: server response if successful
407 resp, list = self.longcmd(line, file)
408 resp, nr, id = self.statparse(resp)
409 return resp, nr, id, list
415 - resp: server response if successful
427 - resp: server response if successful
439 - resp: server response if successful
448 - resp: server response if successful"""
457 - resp: server response if successful
461 resp, lines = self.longcmd('XHDR ' + hdr + ' ' + str, file)
467 return resp, lines
474 - resp: server response if successful
478 resp, lines = self.longcmd('XOVER ' + start + '-' + end, file)
493 return resp,xover_lines
499 - resp: server response if successful
503 resp, raw_lines = self.longcmd('XGTITLE ' + group, file)
509 return resp, lines
515 resp: server response if successful
518 resp = self.shortcmd("XPATH " + id)
519 if resp[:3] != '223':
520 raise NNTPReplyError(resp)
522 [resp_num, path] = resp.split()
524 raise NNTPReplyError(resp)
526 return resp, path
532 resp: server response if successful
536 resp = self.shortcmd("DATE")
537 if resp[:3] != '111':
538 raise NNTPReplyError(resp)
539 elem = resp.split()
541 raise NNTPDataError(resp)
545 raise NNTPDataError(resp)
546 return resp, date, time
553 - resp: server response if successful"""
555 resp = self.shortcmd('POST')
557 if resp[0] != '3':
558 raise NNTPReplyError(resp)
576 - resp: server response if successful
579 resp = self.shortcmd('IHAVE ' + id)
581 if resp[0] != '3':
582 raise NNTPReplyError(resp)
597 - resp: server response if successful"""
599 resp = self.shortcmd('QUIT')
603 return resp
619 resp, count, first, last, name = s.group('comp.lang.python')
620 print resp
622 resp, subs = s.xhdr('subject', first + '-' + last)
623 print resp
626 resp = s.quit()
627 print resp