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

Lines Matching full:line

30 # Line terminators (we always output CRLF, but accept any of CRLF, LFCR, LF)
69 POP is a line-based protocol, which means large mail
71 line-by-line.
89 def _putline(self, line):
90 if self._debugging > 1: print '*put*', repr(line)
91 self.sock.sendall('%s%s' % (line, CRLF))
96 def _putcmd(self, line):
97 if self._debugging: print '*cmd*', repr(line)
98 self._putline(line)
101 # Internal: return one line from the server, stripping CRLF.
106 line = self.file.readline()
107 if self._debugging > 1: print '*get*', repr(line)
108 if not line: raise error_proto('-ERR EOF')
109 octets = len(line)
113 if line[-2:] == CRLF:
114 return line[:-2], octets
115 if line[0] == CR:
116 return line[1:-1], octets
117 return line[:-1], octets
137 line, o = self._getline()
138 while line != '.':
139 if line[:2] == '..':
141 line = line[1:]
143 list.append(line)
144 line, o = self._getline()
150 def _shortcmd(self, line):
151 self._putcmd(line)
157 def _longcmd(self, line):
158 self._putcmd(line)
222 Result is in form ['response', ['line', ...], octets].
295 Result is in form ['response', ['line', ...], octets].
363 line = ""
369 line = match.group(0)
371 if self._debugging > 1: print '*get*', repr(line)
373 octets = len(line)
374 if line[-2:] == CRLF:
375 return line[:-2], octets
376 if line[0] == CR:
377 return line[1:-1], octets
378 return line[:-1], octets
380 def _putline(self, line):
381 if self._debugging > 1: print '*put*', repr(line)
382 line += CRLF
383 bytes = len(line)
385 sent = self.sslobj.write(line)
388 line = line[sent:]
414 for line in msg:
415 print ' ' + line