

def _serialize_xml2(write, elem, encoding, qnames, namespaces, orig=ElementTree._serialize_xml):
    if (elem.tag == '![CDATA['):
        write(('\n<%s%s]]>\n' % (elem.tag, elem.text.encode(encoding, 'xmlcharrefreplace'))))
        return
    return orig(write, elem, encoding, qnames, namespaces)

dataset/ETHPy150Open behave/behave/behave/reporter/junit.py _serialize_xml2/original