diff options
| author | John R. Lenton | 2014-01-13 19:55:18 +0000 |
|---|---|---|
| committer | John R. Lenton | 2014-01-13 19:55:18 +0000 |
| commit | 88cb1e60e0b780d71e9c2d7b0acafa71ba3ea318 (patch) | |
| tree | e24e894cb9a67d89e8d4ef956e7ce9fea5f8b245 /py/objlist.c | |
| parent | 2ded68db77d92f4f277ae688c22ac0be32dc4f31 (diff) | |
Made sorted() raise an exception instead of aborting when given no arguments; moved around some things in objfun.c as a consequence
Diffstat (limited to 'py/objlist.c')
| -rw-r--r-- | py/objlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objlist.c b/py/objlist.c index d5ea7f47b..f806dfae8 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -381,7 +381,7 @@ static MP_DEFINE_CONST_FUN_OBJ_3(list_insert_obj, list_insert); static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(list_pop_obj, 1, 2, list_pop); static MP_DEFINE_CONST_FUN_OBJ_2(list_remove_obj, list_remove); static MP_DEFINE_CONST_FUN_OBJ_1(list_reverse_obj, list_reverse); -static MP_DEFINE_CONST_FUN_OBJ_KW(list_sort_obj, list_sort); +static MP_DEFINE_CONST_FUN_OBJ_KW(list_sort_obj, 0, list_sort); static const mp_method_t list_type_methods[] = { { "append", &list_append_obj }, |
