From 27f5bdd6d4a5653004368983ced1e9cda25d1baf Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 26 Apr 2014 21:15:56 +0300 Subject: [PATCH] py: "read" & "write" are so common that make them core. Few other strings move to core, but make depend on "io" module. --- py/qstrdefs.h | 4 ++++ unix/qstrdefsport.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/py/qstrdefs.h b/py/qstrdefs.h index c6c9cc5287..380236de4d 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -138,6 +138,7 @@ Q(path) Q(pow) Q(print) Q(range) +Q(read) Q(repr) Q(set) Q(sorted) @@ -150,6 +151,7 @@ Q(to_bytes) Q(tuple) Q(type) Q(value) +Q(write) Q(zip) Q(sep) @@ -309,6 +311,8 @@ Q(unpack) #if MICROPY_ENABLE_MOD_IO Q(io) +Q(readall) +Q(readline) Q(StringIO) Q(BytesIO) Q(getvalue) diff --git a/unix/qstrdefsport.h b/unix/qstrdefsport.h index f7990322ea..1aaf9bd16b 100644 --- a/unix/qstrdefsport.h +++ b/unix/qstrdefsport.h @@ -3,10 +3,6 @@ Q(Test) Q(fileno) -Q(read) -Q(readall) -Q(readline) -Q(write) Q(makefile) Q(FileIO)