extmod/modubinascii: Re-use error string to reduce code size.
Drops Thumb2 arch size by 24 bytes.
This commit is contained in:
parent
de575c80b9
commit
722d4842df
@ -120,7 +120,7 @@ mp_obj_t mod_binascii_a2b_base64(mp_obj_t data) {
|
||||
hold[j] = 63;
|
||||
} else if (in[j] == '=') {
|
||||
if (j < 2 || i > 4) {
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "invalid padding"));
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "incorrect padding"));
|
||||
}
|
||||
hold[j] = 64;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user