diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2019-11-26 18:39:08 -0500 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2019-11-26 18:39:08 -0500 |
| commit | 56720eae0a9eb6fe8845cf20eb1298c3fb68a373 (patch) | |
| tree | ef0776247da69096bebc9fba54ce79e94b202844 /shared-module | |
| parent | 0b0aa5c5cf69189a619c6888fdd62c3eee063480 (diff) | |
remove unnecessary intermediate mp_obj_subscr wrapper
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/os/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/os/__init__.c b/shared-module/os/__init__.c index 8060eec4f..ad76251c8 100644 --- a/shared-module/os/__init__.c +++ b/shared-module/os/__init__.c @@ -127,7 +127,7 @@ mp_obj_t common_hal_os_listdir(const char* path) { mp_obj_t next; while ((next = mp_iternext(iter_obj)) != MP_OBJ_STOP_ITERATION) { // next[0] is the filename. - mp_obj_list_append(dir_list, mp_obj_subscr(next, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL)); + mp_obj_list_append(dir_list, mp_obj_subscr(next, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL, dir_list)); RUN_BACKGROUND_TASKS; } return dir_list; |
