summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtin.c b/py/builtin.c
index 281c57dd43..1e022becbd 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -178,8 +178,8 @@ STATIC mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) {
}
}
if (meth != NULL) {
- for (; meth->name != NULL; meth++) {
- mp_obj_list_append(dir, MP_OBJ_NEW_QSTR(qstr_from_str(meth->name)));
+ for (; meth->name != MP_QSTR_NULL; meth++) {
+ mp_obj_list_append(dir, MP_OBJ_NEW_QSTR(meth->name));
}
}
return dir;