MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _longcmdstring

Method _longcmdstring

tools/python-3.11.9-amd64/Lib/nntplib.py:551–559  ·  view source on GitHub ↗

Internal: send a command and get the response plus following text. Same as _longcmd() and _getlongresp(), except that the returned `lines` are unicode strings rather than bytes objects.

(self, line, file=None)

Source from the content-addressed store, hash-verified

549 return self._getlongresp(file)
550
551 def _longcmdstring(self, line, file=None):
552 """Internal: send a command and get the response plus following text.
553 Same as _longcmd() and _getlongresp(), except that the returned `lines`
554 are unicode strings rather than bytes objects.
555 """
556 self._putcmd(line)
557 resp, list = self._getlongresp(file)
558 return resp, [line.decode(self.encoding, self.errors)
559 for line in list]
560
561 def _getoverviewfmt(self):
562 """Internal: get the overview format. Queries the server if not

Callers 10

_getoverviewfmtMethod · 0.95
capabilitiesMethod · 0.95
newgroupsMethod · 0.95
newnewsMethod · 0.95
listMethod · 0.95
_getdescriptionsMethod · 0.95
helpMethod · 0.95
xhdrMethod · 0.95
xoverMethod · 0.95
overMethod · 0.95

Calls 3

_putcmdMethod · 0.95
_getlongrespMethod · 0.95
decodeMethod · 0.45

Tested by

no test coverage detected