@@ -148,12 +148,6 @@ STATIC mp_uint_t file_obj_ioctl(mp_obj_t o_in, mp_uint_t request, mp_uint_t arg,
148148 }
149149}
150150
151- mp_obj_t file_obj_tell (mp_obj_t self_in ) {
152- pyb_file_obj_t * self = self_in ;
153- return mp_obj_new_int_from_uint (f_tell (& self -> fp ));
154- }
155- STATIC MP_DEFINE_CONST_FUN_OBJ_1 (file_obj_tell_obj , file_obj_tell );
156-
157151// Note: encoding is ignored for now; it's also not a valid kwarg for CPython's FileIO,
158152// but by adding it here we can use one single mp_arg_t array for open() and FileIO's constructor
159153STATIC const mp_arg_t file_open_args [] = {
@@ -231,7 +225,7 @@ STATIC const mp_map_elem_t rawfile_locals_dict_table[] = {
231225 { MP_OBJ_NEW_QSTR (MP_QSTR_flush ), (mp_obj_t )& file_obj_flush_obj },
232226 { MP_OBJ_NEW_QSTR (MP_QSTR_close ), (mp_obj_t )& file_obj_close_obj },
233227 { MP_OBJ_NEW_QSTR (MP_QSTR_seek ), (mp_obj_t )& mp_stream_seek_obj },
234- { MP_OBJ_NEW_QSTR (MP_QSTR_tell ), (mp_obj_t )& file_obj_tell_obj },
228+ { MP_OBJ_NEW_QSTR (MP_QSTR_tell ), (mp_obj_t )& mp_stream_tell_obj },
235229 { MP_OBJ_NEW_QSTR (MP_QSTR___del__ ), (mp_obj_t )& file_obj_close_obj },
236230 { MP_OBJ_NEW_QSTR (MP_QSTR___enter__ ), (mp_obj_t )& mp_identity_obj },
237231 { MP_OBJ_NEW_QSTR (MP_QSTR___exit__ ), (mp_obj_t )& file_obj___exit___obj },
0 commit comments