1.1 --- a/lib/__builtins__/io.py Tue Dec 06 20:32:33 2016 +0100
1.2 +++ b/lib/__builtins__/io.py Tue Dec 06 20:35:50 2016 +0100
1.3 @@ -19,30 +19,6 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from posix.io import fdopen, read, write
1.8 -
1.9 -class sysfile:
1.10 -
1.11 - "A system-level file object."
1.12 -
1.13 - def __init__(self, fd):
1.14 -
1.15 - "Initialise the file with the given 'fd'."
1.16 -
1.17 - self.fd = fd
1.18 -
1.19 - def read(self, n):
1.20 -
1.21 - "Read 'n' bytes from the file."
1.22 -
1.23 - return read(self.fd, n)
1.24 -
1.25 - def write(self, s):
1.26 -
1.27 - "Write 's' to the file."
1.28 -
1.29 - write(self.fd, str(s))
1.30 -
1.31 def open(name, mode=None, buffering=None):
1.32
1.33 """