MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_line

Method _get_line

Lib/imaplib.py:1323–1339  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1321
1322
1323 def _get_line(self):
1324
1325 line = self.readline()
1326 if not line:
1327 raise self.abort('socket error: EOF')
1328
1329 # Protocol mandates all lines terminated by CRLF
1330 if not line.endswith(b'\r\n'):
1331 raise self.abort('socket error: unterminated line: %r' % line)
1332
1333 line = line[:-2]
1334 if __debug__:
1335 if self.debug >= 4:
1336 self._mesg('< %r' % line)
1337 else:
1338 self._log('< %r' % line)
1339 return line
1340
1341
1342 def _match(self, cre, s):

Callers 1

_get_responseMethod · 0.95

Calls 5

readlineMethod · 0.95
_mesgMethod · 0.95
_logMethod · 0.95
abortMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected