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 in range(len(args)):
        if string.find(args[i], ' ') != -1:
            args[i] = '"%s"' % args[i]
    return args
Quote command-line arguments for DOS/Windows conventions: just
dataset/ETHPy150Open babble/babble/include/jython/Lib/distutils/spawn.py/_nt_quote_args