def ParseData(self, raw_text_data, mime_type):
    if mime_type != 'application/atom+xml':
      raise ValueError('Unknown MIME type %s' % mime_type)

    d = et.ElementTree()
    raw_text_data = raw_text_data.encode('utf8') if type(raw_text_data) is unicode else raw_text_data
    d._setroot(et.XML(raw_text_data))

    return d
Class specific additions.
dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py/MagicEnvelopeProtocol.ParseData--crossover with--dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/cocoadialog.py/Bubble.GenerateCommand