Lines Matching refs:line
44 # maximal line length when calling readline(). This is to prevent
45 # reading arbitrary length lines. RFC 1939 limits POP3 line length to
87 POP is a line-based protocol, which means large mail
89 line-by-line.
114 def _putline(self, line):
115 if self._debugging > 1: print('*put*', repr(line))
116 sys.audit("poplib.putline", self, line)
117 self.sock.sendall(line + CRLF)
122 def _putcmd(self, line):
123 if self._debugging: print('*cmd*', repr(line))
124 line = bytes(line, self.encoding)
125 self._putline(line)
128 # Internal: return one line from the server, stripping CRLF.
133 line = self.file.readline(_MAXLINE + 1)
134 if len(line) > _MAXLINE:
135 raise error_proto('line too long')
137 if self._debugging > 1: print('*get*', repr(line))
138 if not line: raise error_proto('-ERR EOF')
139 octets = len(line)
143 if line[-2:] == CRLF:
144 return line[:-2], octets
145 if line[:1] == CR:
146 return line[1:-1], octets
147 return line[:-1], octets
166 line, o = self._getline()
167 while line != b'.':
168 if line.startswith(b'..'):
170 line = line[1:]
172 list.append(line)
173 line, o = self._getline()
179 def _shortcmd(self, line):
180 self._putcmd(line)
186 def _longcmd(self, line):
187 self._putcmd(line)
251 Result is in form ['response', ['line', ...], octets].
343 Result is in form ['response', ['line', ...], octets].
379 def _parsecap(line):
380 lst = line.decode('ascii').split()
480 for line in msg:
481 print(' ' + line)