def _EscapeCommandLineArgumentForMSBuild(s):
 def _Replace(match):
  return ((((len(match.group(1)) / 2) * 4) * '\\') + '\\"')
 s = quote_replacer_regex2.sub(_Replace, s)
 return s

def _EscapeCommandLineArgumentForMSBuild ( s ) : def _Replace ( match ) : return ( ( ( ( len ( match . group ( 1 ) ) / 2 ) * 4 ) * '\\' ) + '\\"' ) s = quote_replacer_regex2 . sub ( _Replace , s ) return s
escapes a windows command-line argument for use by msbuild .