build/lib/pywinexe/parser.py
def parse_ps(ps, *args):
    """Returns a one line version of a powershell script
    """
    # insert args
    if args:
        ps = _insert_ps_args(ps, *args)
    # Oneliner
    ps = ';'.join(ps.split('\n'))
    # Prepare for execution in shell, escapes
    ps = ps.replace('\\', '\\\\').replace('"', '\\"')
    return 'powershell "%s"' % ps
Returns a one line version of a powershell script
    
Returns a one line version of a powershell script
Returns a one line version of a powershell script
def parse_ps(ps, *args):
    if args:
        ps = _insert_ps_args(ps, *args)
    ps = ';'.join(ps.split('\n'))
    ps = ps.replace('\\', '\\\\').replace('"', '\\"')
    return 'powershell "%s"' % ps
def parse_ps ( ps , * args ) : if args : ps = _insert_ps_args ( ps , * args ) ps = ';' . join ( ps . split ( '\n' ) ) ps = ps . replace ( '\\' , '\\\\' ) . replace ( '"' , '\\"' ) return 'powershell "%s"' % ps
Returns a one line version of a powershell script
Returns a one line version of a powershell script
"""Returns a one line version of a powershell script
    """ # insert args # Oneliner # Prepare for execution in shell, escapes
ps