def _shell_escape(string):
    """
    Escape double quotes, backticks and dollar signs in given ``string``.

    For example::

        >>> _shell_escape('abc$')
        'abc\\\\$'
        >>> _shell_escape('"')
        '\\\\"'
    """
    for char in ('"', '$', '`'):
        string = string.replace(char, char % '\%s')
    return string
dataset/ETHPy150Open fabric/fabric/fabric/operations.py/_shell_escape/swapped operands of `%`