

def GetSignerURI(self, data):
    "Grabs signer == first author from given message.\n\n    Currently we're assuming most messages are single author\n    and punting on what it means to sign a multi-author\n    message.  We only look at the first (lexical) author\n    in the input and act as if that is the only author.\n\n    Args:\n      data: The message, either pre-parsed or a string.\n    Returns:\n      The URI of the author of the message.\n    "
    if isinstance(data, et.ElementTree):
        d = data
    else:
        d = et.ElementTree()
        data = (data.encode('utf8') if (type(data) is unicode) else data)
        d._setroot(et.XML(data))
    auth_uris = d.getroot().findall((((_ATOM_NS + 'author/') + _ATOM_NS) + 'uri'))
    for u in auth_uris:
        return NormalizeUserIdToUri(u.text)

dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py MagicEnvelopeProtocol.GetSignerURI/original