summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 22:01:32 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 22:01:32 +0100
commitd5f5b2f76698e29f9cc2f0ae682d2475c0d77baa (patch)
tree5e1981a9f39935586e4c5310d1d0c0e3853c6887 /unix
parent5320bff32c2bb97f36dc9fad62864183520d0327 (diff)
downloadmicropython-d5f5b2f76698e29f9cc2f0ae682d2475c0d77baa.tar.gz
micropython-d5f5b2f76698e29f9cc2f0ae682d2475c0d77baa.zip
py, stream: Implement readlines for a stream.
Diffstat (limited to 'unix')
-rw-r--r--unix/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/file.c b/unix/file.c
index 4588d96574..2b7e1a04f1 100644
--- a/unix/file.c
+++ b/unix/file.c
@@ -132,6 +132,7 @@ STATIC const mp_map_elem_t rawfile_locals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_read), (mp_obj_t)&mp_stream_read_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_readall), (mp_obj_t)&mp_stream_readall_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_readline), (mp_obj_t)&mp_stream_unbuffered_readline_obj},
+ { 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_close), (mp_obj_t)&fdfile_close_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR___enter__), (mp_obj_t)&mp_identity_obj },