(self, line)
| 193 | |
| 194 | # Internal: send one line to the server, appending CRLF |
| 195 | def putline(self, line): |
| 196 | if '\r' in line or '\n' in line: |
| 197 | raise ValueError('an illegal newline character should not be contained') |
| 198 | sys.audit("ftplib.sendcmd", self, line) |
| 199 | line = line + CRLF |
| 200 | if self.debugging > 1: |
| 201 | print('*put*', self.sanitize(line)) |
| 202 | self.sock.sendall(line.encode(self.encoding)) |
| 203 | |
| 204 | # Internal: send one command to the server (through putline()) |
| 205 | def putcmd(self, line): |