def _SafeDecodeBytes(unused_field, value):
    """Decode the urlsafe base64 value into bytes."""
    try:
        result = base64.urlsafe_b64decode(str(value))
        complete = True
    except TypeError:
        result = value
        complete = False
    return CodecResult(value=result, complete=complete)
def _SafeDecodeBytes ( unused_field , value ) : try : result = base64 . urlsafe_b64decode ( str ( value ) ) complete = True except TypeError : result = value complete = False return CodecResult ( value = result , complete = complete )
Decode the urlsafe base64 value into bytes.