1.1 --- a/lib/__builtins__/buffer.py Fri Dec 09 00:09:01 2016 +0100
1.2 +++ b/lib/__builtins__/buffer.py Fri Dec 09 16:22:37 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 _list_init, _list_append, _list_concat, _buffer_str
1.8 +from native import list_init, list_append, list_concat, buffer_str
1.9
1.10 class buffer:
1.11
1.12 @@ -36,7 +36,7 @@
1.13 else:
1.14 raise TypeError(size)
1.15
1.16 - self.__data__ = _list_init(n)
1.17 + self.__data__ = list_init(n)
1.18
1.19 # Append all arguments to the buffer.
1.20
1.21 @@ -52,17 +52,17 @@
1.22 """
1.23
1.24 if isinstance(s, buffer):
1.25 - _list_concat(self, s.__data__)
1.26 + list_concat(self, s.__data__)
1.27 elif isinstance(s, string):
1.28 - _list_append(self, s)
1.29 + list_append(self, s)
1.30 else:
1.31 - _list_append(self, str(s))
1.32 + list_append(self, str(s))
1.33
1.34 def __str__(self):
1.35
1.36 "Return a string representation."
1.37
1.38 - return _buffer_str(self.__data__)
1.39 + return buffer_str(self.__data__)
1.40
1.41 def __repr__(self):
1.42