1.1 --- a/lib/__builtins__/file.py Fri Dec 09 00:09:01 2016 +0100
1.2 +++ b/lib/__builtins__/file.py Fri Dec 09 16:22:37 2016 +0100
1.3 @@ -42,7 +42,7 @@
1.4 # Read any indicated number of bytes.
1.5
1.6 if n > 0:
1.7 - return native._fread(self.__data__, n)
1.8 + return native.fread(self.__data__, n)
1.9
1.10 # Read all remaining bytes.
1.11
1.12 @@ -53,7 +53,7 @@
1.13
1.14 try:
1.15 while True:
1.16 - l.append(native._fread(self.__data__, self.bufsize))
1.17 + l.append(native.fread(self.__data__, self.bufsize))
1.18
1.19 # Handle end-of-file reads.
1.20
1.21 @@ -67,13 +67,13 @@
1.22 "Write string 's' to the stream."
1.23
1.24 check_string(s)
1.25 - native._fwrite(self.__data__, s)
1.26 + native.fwrite(self.__data__, s)
1.27
1.28 def close(self):
1.29
1.30 "Close the stream."
1.31
1.32 - native._fclose(self.__data__)
1.33 + native.fclose(self.__data__)
1.34
1.35 class file(filestream):
1.36
1.37 @@ -84,7 +84,7 @@
1.38 "Open the file with the given 'filename' using the given access 'mode'."
1.39
1.40 get_using(filestream.__init__, self)(bufsize)
1.41 - self.__data__ = native._fopen(filename, mode)
1.42 + self.__data__ = native.fopen(filename, mode)
1.43
1.44 def readline(self, size=None): pass
1.45 def readlines(self, size=None): pass