(self, line)
| 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. |