def _negotiate_echo_on(self, sock, cmd, opt):
        # This is supposed to turn server side echoing on and turn other options off.
        if opt == telnetlib.ECHO and cmd in (telnetlib.WILL, telnetlib.WONT):
            self.sock.sendall(telnetlib.IAC + telnetlib.DO + opt)
        elif opt != telnetlib.NOOPT:
            if cmd in (telnetlib.DO, telnetlib.DONT):
                self.sock.sendall(telnetlib.IAC + telnetlib.WONT + opt)
            elif (telnetlib.WILL, telnetlib.WONT) in cmd:
                self.sock.sendall(telnetlib.IAC + telnetlib.DONT + opt)
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/Telnet.py/TelnetConnection._negotiate_echo_on/swapped operands of `in`