(value)
return retVal
Decodes value from Base64 to plain format and deserializes (with pickle) its content

    >>> base64unpickle('gAJVBmZvb2JhcnEALg==')
    'foobar'
Decodes value from Base64 to plain format and deserializes (with pickle) its content
Decodes value from Base64 to plain format and deserializes ( with pickle ) its content
def base64unpickle(value):
    """
    Decodes value from Base64 to plain format and deserializes (with pickle) its content

    >>> base64unpickle('gAJVBmZvb2JhcnEALg==')
    'foobar'
    """

    retVal = None

    try:
        retVal = pickle.loads(base64decode(value))
    except TypeError: 
        retVal = pickle.loads(base64decode(bytes(value)))

    return retVal
def base64unpickle ( value ) : retVal = None try : retVal = pickle . loads ( base64decode ( value ) ) except TypeError : retVal = pickle . loads ( base64decode ( bytes ( value ) ) ) return retVal