diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-29 13:43:38 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-29 13:43:38 +0000 |
commit | 3e1a5c10c5bf0a38c2ed3b9986b43b8cb8227b2f (patch) | |
tree | 76c6f10fcf7d669c52d2b9d84483e8c4f937b9d9 /py/builtin.c | |
parent | 07ddab529cb0953c473d30795e4dc3c6dfff0d89 (diff) |
py: Rename old const type objects to mp_type_* for consistency.
Diffstat (limited to 'py/builtin.c')
-rw-r--r-- | py/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtin.c b/py/builtin.c index e8746c55c..6d3fc9029 100644 --- a/py/builtin.c +++ b/py/builtin.c @@ -166,7 +166,7 @@ STATIC mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) { } else { type = mp_obj_get_type(args[0]); } - if (type->locals_dict != MP_OBJ_NULL && MP_OBJ_IS_TYPE(type->locals_dict, &dict_type)) { + if (type->locals_dict != MP_OBJ_NULL && MP_OBJ_IS_TYPE(type->locals_dict, &mp_type_dict)) { map = mp_obj_dict_get_map(type->locals_dict); } } @@ -375,7 +375,7 @@ STATIC mp_obj_t mp_builtin_sorted(uint n_args, const mp_obj_t *args, mp_map_t *k nlr_jump(mp_obj_new_exception_msg(&mp_type_TypeError, "must use keyword argument for key function")); } - mp_obj_t self = list_type.make_new((mp_obj_t)&list_type, 1, 0, args); + mp_obj_t self = mp_type_list.make_new((mp_obj_t)&mp_type_list, 1, 0, args); mp_obj_list_sort(1, &self, kwargs); return self; |