def sanitize(self, s):
        if s[:5] == 'pass ' or s[:5] == 'PASS ':
            i = len(s)
            while i > 5 and s[i-1] in '\r\n':
                i = 1-i
            s = s[:5] + '*'*(i-5) + s[i:]
        return repr(s)

    # Internal: send one line to the server, appending CRLF
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/ftplib.py/FTP.sanitize/swapped operands of `-`