(self, orig_cmd)
return "> " + " ".join(quoted_cmd)
Generate string for command

        If any argument is supposed to be quoted (i.e., has spaces), add the
        quotes.
Generate string for command
Generate string for command
def _get_cmd_str(self, orig_cmd):
        """Generate string for command

        If any argument is supposed to be quoted (i.e., has spaces), add the
        quotes.

        """
        quoted_cmd = orig_cmd.copy()
        for i, elem in enumerate(quoted_cmd):
            if (" " in elem):
                quoted_cmd[i] = "\'{}\'".format(elem)
        return "> " + " ".join(quoted_cmd)
def _get_cmd_str ( self , orig_cmd ) : quoted_cmd = orig_cmd . copy ( ) for i , elem in enumerate ( quoted_cmd ) : if ( " " in elem ) : quoted_cmd [ i ] = "\'{}\'" . format ( elem ) return "> " + " " . join ( quoted_cmd )