Commit 722d4842 authored by Damien George's avatar Damien George
Browse files

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

Drops Thumb2 arch size by 24 bytes.
parent de575c80
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment