def escape_chars(s):
    """
    Performs character escaping of comma, pipe and equals characters
    """
    return "".join(['\\' + ch if ch in '=|,' else ch for ch in s])
dataset/ETHPy150Open Parallels/artifactory/artifactory.py/escape_chars/original