From 9e29666bf99c5e5f1cb0246d420b207aacfdf408 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 19 May 2014 20:59:13 +0300 Subject: py: Implement proper separation between io.FileIO and io.TextIOWrapper. io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway. --- py/mpconfig.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 53429f1c1..445fc78b0 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -225,6 +225,10 @@ typedef double mp_float_t; #define MICROPY_ENABLE_MOD_IO (1) #endif +#ifndef MICROPY_MOD_IO_FILEIO +#define MICROPY_MOD_IO_FILEIO (0) +#endif + #ifndef MICROPY_IO_BYTESIO #define MICROPY_IO_BYTESIO (1) #endif -- cgit v1.2.3