Skip to content

Commit 75d6abe

Browse files
committed
Correct name of mp_raise_NotImplementedError to make error name.
1 parent 35071b3 commit 75d6abe

File tree

16 files changed

+23
-23
lines changed

16 files changed

+23
-23
lines changed

atmel-samd/common-hal/nativeio/TouchInStub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
void common_hal_nativeio_touchin_construct(nativeio_touchin_obj_t* self,
3636
const mcu_pin_obj_t *pin) {
37-
mp_raise_NotImplementError("No capacitive touch support");
37+
mp_raise_NotImplementedError("No capacitive touch support");
3838
}
3939

4040
void common_hal_nativeio_touchin_deinit(nativeio_touchin_obj_t* self) {

extmod/modlwip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ STATIC mp_obj_t lwip_socket_sendall(mp_obj_t self_in, mp_obj_t buf_in) {
10251025
break;
10261026
}
10271027
case MOD_NETWORK_SOCK_DGRAM:
1028-
mp_raise_NotImplementError("");
1028+
mp_raise_NotImplementedError("");
10291029
break;
10301030
}
10311031

extmod/modure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ STATIC mp_obj_t re_split(size_t n_args, const mp_obj_t *args) {
153153
mp_obj_t s = mp_obj_new_str(subj.begin, caps[0] - subj.begin, false);
154154
mp_obj_list_append(retval, s);
155155
if (self->re.sub > 0) {
156-
mp_raise_NotImplementError("Splitting with sub-captures");
156+
mp_raise_NotImplementedError("Splitting with sub-captures");
157157
}
158158
subj.begin = caps[1];
159159
if (maxsplit > 0 && --maxsplit == 0) {

extmod/modussl_axtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ STATIC mp_obj_t socket_setblocking(mp_obj_t self_in, mp_obj_t flag_in) {
126126
// Currently supports only blocking mode
127127
(void)self_in;
128128
if (!mp_obj_is_true(flag_in)) {
129-
mp_raise_NotImplementError("");
129+
mp_raise_NotImplementedError("");
130130
}
131131
return mp_const_none;
132132
}

extmod/modussl_mbedtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ STATIC mp_obj_t socket_setblocking(mp_obj_t self_in, mp_obj_t flag_in) {
219219
// Currently supports only blocking mode
220220
(void)self_in;
221221
if (!mp_obj_is_true(flag_in)) {
222-
mp_raise_NotImplementError("");
222+
mp_raise_NotImplementedError("");
223223
}
224224
return mp_const_none;
225225
}

py/argcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@ NORETURN void mp_arg_error_terse_mismatch(void) {
142142

143143
#if MICROPY_CPYTHON_COMPAT
144144
NORETURN void mp_arg_error_unimpl_kw(void) {
145-
mp_raise_NotImplementError("keyword argument(s) not yet implemented - use normal args instead");
145+
mp_raise_NotImplementedError("keyword argument(s) not yet implemented - use normal args instead");
146146
}
147147
#endif

py/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, bool first_token) {
463463
// 3MB of text; even gzip-compressed and with minimal structure, it'll take
464464
// roughly half a meg of storage. This form of Unicode escape may be added
465465
// later on, but it's definitely not a priority right now. -- CJA 20140607
466-
mp_raise_NotImplementError("unicode name escapes");
466+
mp_raise_NotImplementedError("unicode name escapes");
467467
break;
468468
default:
469469
if (c >= '0' && c <= '7') {

py/objarray.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ STATIC mp_obj_t array_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in)
292292

293293
// Otherwise, can only look for a scalar numeric value in an array
294294
if (MP_OBJ_IS_INT(rhs_in) || mp_obj_is_float(rhs_in)) {
295-
mp_raise_NotImplementError("");
295+
mp_raise_NotImplementedError("");
296296
}
297297

298298
return mp_const_false;
@@ -382,7 +382,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value
382382
} else if (MP_OBJ_IS_TYPE(index_in, &mp_type_slice)) {
383383
mp_bound_slice_t slice;
384384
if (!mp_seq_get_fast_slice_indexes(o->len, index_in, &slice)) {
385-
mp_raise_NotImplementError("only slices with step=1 (aka None) are supported");
385+
mp_raise_NotImplementedError("only slices with step=1 (aka None) are supported");
386386
}
387387
if (value != MP_OBJ_SENTINEL) {
388388
#if MICROPY_PY_ARRAY_SLICE_ASSIGN
@@ -413,7 +413,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value
413413
src_len = bufinfo.len;
414414
src_items = bufinfo.buf;
415415
} else {
416-
mp_raise_NotImplementError("array/bytes required on right side");
416+
mp_raise_NotImplementedError("array/bytes required on right side");
417417
}
418418

419419
// TODO: check src/dst compat

py/objint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ STATIC mp_obj_t int_from_bytes(size_t n_args, const mp_obj_t *args) {
380380
(void)n_args;
381381

382382
if (args[2] != MP_OBJ_NEW_QSTR(MP_QSTR_little)) {
383-
mp_raise_NotImplementError("");
383+
mp_raise_NotImplementedError("");
384384
}
385385

386386
// get the buffer info
@@ -405,7 +405,7 @@ STATIC mp_obj_t int_to_bytes(size_t n_args, const mp_obj_t *args) {
405405
(void)n_args;
406406

407407
if (args[2] != MP_OBJ_NEW_QSTR(MP_QSTR_little)) {
408-
mp_raise_NotImplementError("");
408+
mp_raise_NotImplementedError("");
409409
}
410410

411411
mp_uint_t len = MP_OBJ_SMALL_INT_VALUE(args[1]);

py/objlist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ STATIC mp_obj_t list_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) {
156156
mp_obj_list_t *self = MP_OBJ_TO_PTR(self_in);
157157
mp_bound_slice_t slice;
158158
if (!mp_seq_get_fast_slice_indexes(self->len, index, &slice)) {
159-
mp_raise_NotImplementError("");
159+
mp_raise_NotImplementedError("");
160160
}
161161

162162
mp_int_t len_adj = slice.start - slice.stop;
@@ -196,7 +196,7 @@ STATIC mp_obj_t list_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value) {
196196
mp_obj_list_t *slice = MP_OBJ_TO_PTR(value);
197197
mp_bound_slice_t slice_out;
198198
if (!mp_seq_get_fast_slice_indexes(self->len, index, &slice_out)) {
199-
mp_raise_NotImplementError("");
199+
mp_raise_NotImplementedError("");
200200
}
201201
mp_int_t len_adj = slice->len - (slice_out.stop - slice_out.start);
202202
//printf("Len adj: %d\n", len_adj);

0 commit comments

Comments
 (0)