def __dict_replace(s, d):
    for key, value in d.items():
        s = s.replace(key, value)
    return s
Replace substrings of a string using a dictionary.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/xml/sax/saxutils.py/__dict_replace