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

Method _putcmd

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

Internal: send one command to the server (through _putline()). The `line` must be a unicode string.

(self, line)

Source from the content-addressed store, hash-verified

451 self.file.flush()
452
453 def _putcmd(self, line):
454 """Internal: send one command to the server (through _putline()).
455 The `line` must be a unicode string."""
456 if self.debugging: print('*cmd*', repr(line))
457 line = line.encode(self.encoding, self.errors)
458 self._putline(line)
459
460 def _getline(self, strip_crlf=True):
461 """Internal: return one line from the server, stripping _CRLF.

Callers 3

_shortcmdMethod · 0.95
_longcmdMethod · 0.95
_longcmdstringMethod · 0.95

Calls 3

_putlineMethod · 0.95
printFunction · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected