def finish(self, line):
        """
        """
        self.pause = False
        rest, host = self.host, 'localhost'
        rest = self.host.strip().split('.')
        if len(rest) and rest[0].isalpha():
            host = rest[0]
        self.protocol.hostname = host
        self.protocol.cwd = '/root'
        if not self.fs.exists(self.protocol.cwd):
            self.protocol.cwd = '/'
        self.protocol.password_input = False
        self.write(
            'Linux %s 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686\n' % \
            (self.protocol.hostname,))
        self.write('Last login: %s from 192.168.9.4\n' % \
            (time.ctime(123123 - time.time()),))
        self.exit()
dataset/ETHPy150Open cowrie/cowrie/cowrie/commands/ssh.py/command_ssh.finish/swapped operands of `-`