def decode_cookie(cookie):
    try:
        payload, digest = cookie.rsplit(u'|', 1)
        if hasattr(digest, 'decode'):
            digest = digest.decode('ascii')  # pragma: no cover
    except ValueError:
        return

    if safe_str_cmp(_cookie_digest(payload), digest):
        return payload
Temporary method, used to update all expressions to the new format
dataset/ETHPy150Open maxcountryman/flask-login/flask_login/utils.py/decode_cookie--crossover with--dataset/ETHPy150Open cloudtools/nymms/nymms/suppress/suppress.py/SuppressionManager.migrate_suppressions