Lichen

Change of lib/posix/io.py

354:4cb3b47bd18f
lib/posix/io.py
     1.1 --- a/lib/posix/io.py	Fri Dec 09 00:09:01 2016 +0100
     1.2 +++ b/lib/posix/io.py	Fri Dec 09 16:22:37 2016 +0100
     1.3 @@ -78,7 +78,7 @@
     1.4  
     1.5      "Close the file descriptor 'fd'."
     1.6  
     1.7 -    native._close(fd)
     1.8 +    native.close(fd)
     1.9  
    1.10  def closerange(fd_low, fd_high): pass
    1.11  def dup(fd): pass
    1.12 @@ -97,7 +97,7 @@
    1.13  
    1.14      check_int(fd)
    1.15      check_string(mode)
    1.16 -    return native._fdopen(fd, mode)
    1.17 +    return native.fdopen(fd, mode)
    1.18  
    1.19  def fpathconf(fd, name): pass
    1.20  def fstat(fd): pass
    1.21 @@ -124,7 +124,7 @@
    1.22  
    1.23      check_int(fd)
    1.24      check_int(n)
    1.25 -    return native._read(fd, n)
    1.26 +    return native.read(fd, n)
    1.27  
    1.28  def times(): pass
    1.29  def ttyname(fd): pass
    1.30 @@ -138,7 +138,7 @@
    1.31  
    1.32      check_int(fd)
    1.33      check_string(s)
    1.34 -    return native._write(fd, s)
    1.35 +    return native.write(fd, s)
    1.36  
    1.37  # Constants.
    1.38