MCPcopy Index your code
hub / github.com/python/cpython / _putcmd

Method _putcmd

Lib/poplib.py:122–127  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

120 # Internal: send one command to the server (through _putline())
121
122 def _putcmd(self, line):
123 if self._debugging: print('*cmd*', repr(line))
124 line = bytes(line, self.encoding)
125 if re.search(b'[\x00-\x1F\x7F]', line):
126 raise ValueError('Control characters not allowed in commands')
127 self._putline(line)
128
129
130 # Internal: return one line from the server, stripping CRLF.

Callers 2

_shortcmdMethod · 0.95
_longcmdMethod · 0.95

Calls 2

_putlineMethod · 0.95
searchMethod · 0.45

Tested by

no test coverage detected