1.1 --- a/lib/__builtins__/io.py Tue Dec 06 17:49:39 2016 +0100
1.2 +++ b/lib/__builtins__/io.py Tue Dec 06 17:55:55 2016 +0100
1.3 @@ -19,7 +19,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from native import _read, _write
1.8 +from posix.io import fdopen, read, write
1.9
1.10 class sysfile:
1.11
1.12 @@ -35,13 +35,13 @@
1.13
1.14 "Read 'n' bytes from the file."
1.15
1.16 - return _read(self.fd, n)
1.17 + return read(self.fd, n)
1.18
1.19 def write(self, s):
1.20
1.21 "Write 's' to the file."
1.22
1.23 - _write(self.fd, str(s))
1.24 + write(self.fd, str(s))
1.25
1.26 def open(name, mode=None, buffering=None):
1.27