

def DecodeData(self, encoded_text_data, encoding):
    'Decodes armored data into raw text form.\n\n    Args:\n      encoded_text_data: Armored data to be decoded.\n      encoding: Encoding to use.\n    Raises:\n      ValueError: If the encoding is unknown.\n    Returns:\n      The raw decoded text as a string.\n    '
    if (encoding != 'base64url'):
        raise ValueError(('Unknown encoding %s' % encoding))
    return base64.urlsafe_b64decode(encoding.encode('utf-8'))

dataset/ETHPy150Open mimecuvalo/helloworld/packages/magicsig/__init__.py MagicEnvelopeProtocol.DecodeData/VarMisuse@41/160 `encoded_text_data`->`encoding`