(args)
return args
Quote command-line arguments for DOS/Windows conventions.

    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
Quote command-line arguments for DOS/Windows conventions.
Quote command - line arguments for DOS / Windows conventions .
def _nt_quote_args(args):
    """Quote command-line arguments for DOS/Windows conventions.

    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
    """
    # XXX this doesn't seem very robust to me -- but if the Windows guys
    # say it'll work, I guess I'll have to accept it.  (What if an arg
    # contains quotes?  What other magic characters, other than spaces,
    # have to be escaped?  Is there an escaping mechanism other than
    # quoting?)
    for i, arg in enumerate(args):
        if ' ' in arg:
            args[i] = '"%s"' % arg
    return args
def _nt_quote_args ( args ) : # XXX this doesn't seem very robust to me -- but if the Windows guys # say it'll work, I guess I'll have to accept it.  (What if an arg # contains quotes?  What other magic characters, other than spaces, # have to be escaped?  Is there an escaping mechanism other than # quoting?) for i , arg in enumerate ( args ) : if ' ' in arg : args [ i ] = '"%s"' % arg return args