parameters: (arg, flavor)
return_statement: return "'" + arg.replace("'", "'" + '"\'"' + "'")  + "'"
docstring: Quote a string such that it will be interpreted as a single argument
    by the shell.
docstring_summary: Quote a string such that it will be interpreted as a single argument
    by the shell.
docstring_tokens: Quote a string such that it will be interpreted as a single argument by the shell .
function: def QuoteShellArgument(arg, flavor):
    """Quote a string such that it will be interpreted as a single argument
    by the shell."""
    # Rather than attempting to enumerate the bad shell characters, just
    # whitelist common OK ones and quote anything else.
    if re.match(r'^[a-zA-Z0-9_=.\\/-]+$', arg):
      return arg  # No quoting necessary.
    if flavor == 'win':
      return gyp.msvs_emulation.QuoteForRspFile(arg)
    return "'" + arg.replace("'", "'" + '"\'"' + "'")  + "'"
function_tokens: def QuoteShellArgument ( arg , flavor ) : # Rather than attempting to enumerate the bad shell characters, just # whitelist common OK ones and quote anything else. if re . match ( r'^[a-zA-Z0-9_=.\\/-]+$' , arg ) : return arg # No quoting necessary. if flavor == 'win' : return gyp . msvs_emulation . QuoteForRspFile ( arg ) return "'" + arg . replace ( "'" , "'" + '"\'"' + "'" ) + "'"