remotelogin/connections/terminal/__init__.py
def expand_connections(connections):
    """ when the connections variable passed to TerminalConnection is a mix of items we flatten the list here """
    ret = []
    for conn in connections:
        if isinstance(conn, TerminalConnection):
            ret.extend(expand_connections(conn.connections))
        elif isinstance(conn, collections.Sequence):
            ret.extend(expand_connections(conn))
        else:
            ret.append(conn)
    return ret
 when the connections variable passed to TerminalConnection is a mix of items we flatten the list here 
when the connections variable passed to TerminalConnection is a mix of items we flatten the list here
when the connections variable passed to TerminalConnection is a mix of items we flatten the list here
def expand_connections(connections):
    ret = []
    for conn in connections:
        if isinstance(conn, TerminalConnection):
            ret.extend(expand_connections(conn.connections))
        elif isinstance(conn, collections.Sequence):
            ret.extend(expand_connections(conn))
        else:
            ret.append(conn)
    return ret
def expand_connections ( connections ) : ret = [ ] for conn in connections : if isinstance ( conn , TerminalConnection ) : ret . extend ( expand_connections ( conn . connections ) ) elif isinstance ( conn , collections . Sequence ) : ret . extend ( expand_connections ( conn ) ) else : ret . append ( conn ) return ret
when the connections variable passed to TerminalConnection is a mix of items we flatten the list here
when the connections variable passed to TerminalConnection is a mix of items we flatten the list here
""" when the connections variable passed to TerminalConnection is a mix of items we flatten the list here """
connections