diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-13 23:25:33 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-13 23:31:06 +0200 |
commit | 5225450b9f7116e0c2a1d4080fbc479ea4b677c7 (patch) | |
tree | 32dd3a87c17c2d78e608630426835d46db7ffaa1 /unix/file.c | |
parent | 5d2499c63813566b1e35067f6faff3046c7f9d0a (diff) |
Add generic impl of stream .readall() method. Use one for unix io.FileIO.
Diffstat (limited to 'unix/file.c')
-rw-r--r-- | unix/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 }, |