def escape_dollar(v):
    try:
        str_type = unicode
    except __HOLE__:
        str_type = str
    if isinstance(v, str_type):
        return v.replace('$', r'\$')
    else:
        return v
dataset/ETHPy150Open projectatomic/atomic-reactor/atomic_reactor/util.py/escape_dollar