def _compound_from_key(self, key):
        try:
            enc, hash = key.split('+')
            return enc, hash
        except ValueError:
            pass

        try:
            enc, hash = key.split('-')
            return enc, hash
        except __HOLE__:
            pass

        raise Error('Unsupported algorithm: {}'.format(key))
dataset/ETHPy150Open Demonware/jose/jose.py/_JWA._compound_from_key