Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ mp_obj_t mod_binascii_a2b_base64(mp_obj_t data) { ...@@ -120,7 +120,7 @@ mp_obj_t mod_binascii_a2b_base64(mp_obj_t data) {
hold[j] = 63; hold[j] = 63;
} else if (in[j] == '=') { } else if (in[j] == '=') {
if (j < 2 || i > 4) { 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; hold[j] = 64;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment