def escapestr(text, ampm):
    new_text = re.escape(text)
    new_text = new_text.replace(re.escape(ampm), ampm)
    new_text = new_text.replace('\%', '%')
    new_text = new_text.replace('\:', ':')
    new_text = new_text.replace('\?', '?')
    return new_text
:type pc: pyVmomi.VmomiSupport.vmodl.query.PropertyCollector
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_strftime.py/escapestr--crossover with--dataset/ETHPy150Open vmware/pyvmomi-community-samples/samples/waitforupdates.py/make_property_collector