Skip to content

Commit 722d484

Browse files
committed
extmod/modubinascii: Re-use error string to reduce code size.
Drops Thumb2 arch size by 24 bytes.
1 parent de575c8 commit 722d484

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extmod/modubinascii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ mp_obj_t mod_binascii_a2b_base64(mp_obj_t data) {
120120
hold[j] = 63;
121121
} else if (in[j] == '=') {
122122
if (j < 2 || i > 4) {
123-
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "invalid padding"));
123+
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "incorrect padding"));
124124
}
125125
hold[j] = 64;
126126
} else {

0 commit comments

Comments
 (0)