def _shell_join(seq):
    result = []
    for word in seq:
        if isinstance(word, (tuple, MutableSequence)):
            word = _shell_join(word)
        escaped = shell_quote(word)
        result.append(escaped)
    return ' '.join(result)
Convert a nested list of strings to a shell command.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/_ssh/_model.py/_shell_join