extmod/modubinascii: Re-use error string to reduce code size.

Drops Thumb2 arch size by 24 bytes.
This commit is contained in:
Damien George 2015-07-06 11:34:29 +00:00
parent de575c80b9
commit 722d4842df

View File

@ -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 {