diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-02 17:22:51 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-02 17:23:51 +0300 |
commit | a5d2af7949b2af4fd1bae8f477f2c938634aa489 (patch) | |
tree | a26a65194181398707336b318dd7c8332b181414 /unix/file.c | |
parent | e5fa163a4c02531a5f4e49669b66b09fd1ea2785 (diff) |
unix/file: "encoding" arg to open() isn't kw-only.
And with "buffering" arg introduced, it's non possible to make it
non-kwonly.
Diffstat (limited to 'unix/file.c')
-rw-r--r-- | unix/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/file.c b/unix/file.c index 813f97fd2..33acdccd0 100644 --- a/unix/file.c +++ b/unix/file.c @@ -149,7 +149,7 @@ STATIC const mp_arg_t file_open_args[] = { { MP_QSTR_file, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} }, { MP_QSTR_mode, MP_ARG_OBJ, {.u_obj = MP_OBJ_NEW_QSTR(MP_QSTR_r)} }, { MP_QSTR_buffering, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} }, - { MP_QSTR_encoding, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} }, + { MP_QSTR_encoding, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_none_obj)} }, }; #define FILE_OPEN_NUM_ARGS MP_ARRAY_SIZE(file_open_args) |