From 5225450b9f7116e0c2a1d4080fbc479ea4b677c7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 13 Jan 2014 23:25:33 +0200 Subject: Add generic impl of stream .readall() method. Use one for unix io.FileIO. --- unix/file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'unix/file.c') diff --git a/unix/file.c b/unix/file.c index 398aac075..204dc1b7e 100644 --- a/unix/file.c +++ b/unix/file.c @@ -90,6 +90,7 @@ static mp_obj_t fdfile_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *ar static const mp_method_t rawfile_type_methods[] = { { "read", &mp_stream_read_obj }, + { "readall", &mp_stream_readall_obj }, { "write", &mp_stream_write_obj }, { "close", &fdfile_close_obj }, { NULL, NULL }, -- cgit v1.2.3