summaryrefslogtreecommitdiff
path: root/unix/file.c
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2015-08-04 19:45:30 -0400
committerDamien George <damien.p.george@gmail.com>2015-08-13 22:56:32 +0100
commitbdd78c31b68db5323796d93e0a17159806ce10fc (patch)
tree882f4679c6d8867584564a87162d954790981b58 /unix/file.c
parentc39093d801b8fb50c9af48902e9bb5faa9ab1e8b (diff)
py: Add stream_tell method, and use for unix and stmhal file tell.
Diffstat (limited to 'unix/file.c')
-rw-r--r--unix/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/file.c b/unix/file.c
index a7886fd3c..c98212bc2 100644
--- a/unix/file.c
+++ b/unix/file.c
@@ -211,6 +211,7 @@ STATIC const mp_map_elem_t rawfile_locals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_readlines), (mp_obj_t)&mp_stream_unbuffered_readlines_obj},
{ MP_OBJ_NEW_QSTR(MP_QSTR_write), (mp_obj_t)&mp_stream_write_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_seek), (mp_obj_t)&mp_stream_seek_obj },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_tell), (mp_obj_t)&mp_stream_tell_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_flush), (mp_obj_t)&fdfile_flush_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_close), (mp_obj_t)&fdfile_close_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR___enter__), (mp_obj_t)&mp_identity_obj },