def _EscapeCommandLineArgumentForMSVS(s):
 def _Replace(match):
  return ((2 * match.group(1)) + '\\"')
 s = quote_replacer_regex.sub(_Replace, s)
 s = (('"' + s) + '"')
 return s

def _EscapeCommandLineArgumentForMSVS ( s ) : def _Replace ( match ) : return ( ( 2 * match . group ( 1 ) ) + '\\"' ) s = quote_replacer_regex . sub ( _Replace , s ) s = ( ( '"' + s ) + '"' ) return s
escapes a windows command-line argument .