(self, s)
| 186 | |
| 187 | # Internal: "sanitize" a string for printing |
| 188 | def sanitize(self, s): |
| 189 | if s[:5] in {'pass ', 'PASS '}: |
| 190 | i = len(s.rstrip('\r\n')) |
| 191 | s = s[:5] + '*'*(i-5) + s[i:] |
| 192 | return repr(s) |
| 193 | |
| 194 | # Internal: send one line to the server, appending CRLF |
| 195 | def putline(self, line): |