diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:35:50 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-14 15:35:50 -0800 |
commit | 11cc694aa0fced8ea96bf36d37f4409296740e1e (patch) | |
tree | 07a423804af57c95d8776efd07290fd9b96bf1ed /unix/file.c | |
parent | 39eab8de96bf81020ee449347ff0e5958bc1a332 (diff) | |
parent | 5225450b9f7116e0c2a1d4080fbc479ea4b677c7 (diff) | |
download | micropython-11cc694aa0fced8ea96bf36d37f4409296740e1e.tar.gz micropython-11cc694aa0fced8ea96bf36d37f4409296740e1e.zip |
Merge pull request #173 from pfalcon/file-readall
Generic implementation if stream readall() method, immediately reused in unix io.FileIO implementation
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 398aac0759..204dc1b7ef 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 }, |