def _encode(s, encoding):
    try:
        return s.encode(encoding)
    except __HOLE__:
        return s # 1.5.2: assume the string uses the right encoding
dataset/ETHPy150Open babble/babble/include/jython/Lib/xml/etree/ElementTree.py/_encode