mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
all: Raise exceptions via mp_raise_XXX
- Changed: ValueError, TypeError, NotImplementedError
- OSError invocations unchanged, because the corresponding utility
function takes ints, not strings like the long form invocation.
- OverflowError, IndexError and RuntimeError etc. not changed for now
until we decide whether to add new utility functions.
This commit is contained in:
@@ -142,6 +142,6 @@ NORETURN void mp_arg_error_terse_mismatch(void) {
|
||||
|
||||
#if MICROPY_CPYTHON_COMPAT
|
||||
NORETURN void mp_arg_error_unimpl_kw(void) {
|
||||
mp_not_implemented("keyword argument(s) not yet implemented - use normal args instead");
|
||||
mp_raise_NotImplementedError("keyword argument(s) not yet implemented - use normal args instead");
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user