diff options
author | Damien George <damien.p.george@gmail.com> | 2015-07-06 11:34:29 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-07-06 11:34:29 +0000 |
commit | 722d4842dfda320694e6f5964e35e37c148b4b90 (patch) | |
tree | 66aaad2c01d6675b412d2ff4370c0cd76b3f3e89 /extmod/modubinascii.c | |
parent | de575c80b97345d89605990575eb2d87953a3451 (diff) | |
download | micropython-722d4842dfda320694e6f5964e35e37c148b4b90.tar.gz micropython-722d4842dfda320694e6f5964e35e37c148b4b90.zip |
extmod/modubinascii: Re-use error string to reduce code size.
Drops Thumb2 arch size by 24 bytes.
Diffstat (limited to 'extmod/modubinascii.c')
-rw-r--r-- | extmod/modubinascii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c index bf38cdfa78..f6e5d422b3 100644 --- a/extmod/modubinascii.c +++ b/extmod/modubinascii.c @@ -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 { |