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

Lines Matching full:line

14 Here 'resp' is the server response line.
87 # Line terminators (we always output CRLF, but accept any of CRLF, CR, LF)
189 def putline(self, line):
190 """Internal: send one line to the server, appending CRLF."""
191 line = line + CRLF
192 if self.debugging > 1: print '*put*', repr(line)
193 self.sock.sendall(line)
195 def putcmd(self, line):
197 if self.debugging: print '*cmd*', repr(line)
198 self.putline(line)
201 """Internal: return one line from the server, stripping CRLF.
203 line = self.file.readline()
205 print '*get*', repr(line)
206 if not line: raise EOFError
207 if line[-2:] == CRLF: line = line[:-2]
208 elif line[-1:] in CRLF: line = line[:-1]
209 return line
240 line = self.getline()
241 if line == '.':
243 if line[:2] == '..':
244 line = line[1:]
246 file.write(line + "\n")
248 list.append(line)
256 def shortcmd(self, line):
258 self.putcmd(line)
261 def longcmd(self, line, file=None):
263 self.putcmd(line)
382 def statcmd(self, line):
384 resp = self.shortcmd(line)
405 def artcmd(self, line, file=None):
407 resp, list = self.longcmd(line, file)
463 line = lines[i]
464 m = pat.match(line)
480 for line in lines:
481 elem = line.split("\t")
492 raise NNTPDataError(line)
560 line = f.readline()
561 if not line:
563 if line[-1] == '\n':
564 line = line[:-1]
565 if line[:1] == '.':
566 line = '.' + line
567 self.putline(line)
584 line = f.readline()
585 if not line:
587 if line[-1] == '\n':
588 line = line[:-1]
589 if line[:1] == '.':
590 line = '.' + line
591 self.putline(line)