@description(valediction="OK!")
    def _choose_new_hosts(self):
        def get_connection_name(conn, number):
            name = self._get_sa_connection_name(conn)
            return '%s (#%d)' % (name, number)

        def get_connections_names():
            return (', '.join(get_connection_name(c, i) for i, c in enumerate(self._sa_connections))
                    or 'There are no more connections!')

        if not self._sa_connections:
            self._logger.log("There are no new connections on ServerAuditor's servers.")
            self._valediction()
            sys.exit(0)

        self._logger.log("The following new hosts have been founded on ServerAuditor's servers:", sleep=0)
        self._logger.log(get_connections_names(), color='blue')

        prompt = "You may confirm this list (press 'Enter') or remove host (enter its number): "
        while len(self._sa_connections):
            number = p_input(prompt).strip()

            if number == '':
                break

            try:
                number = int(number)
                if number >= len(self._sa_connections) or number < 0:
                    raise IndexError
            except (__HOLE__, IndexError):
                self._logger.log("Incorrect index!", color='red', file=sys.stderr)
            else:
                self._sa_connections.pop(number)
                self._logger.log(get_connections_names(), color='blue')

        if not self._sa_connections:
            self._valediction()
            sys.exit(0)
        return
dataset/ETHPy150Open Crystalnix/serverauditor-sshconfig/serverauditor_sshconfig/sa_import.py/ImportSSHConfigApplication._choose_new_hosts