1.1 --- a/lib/__builtins__/buffer.py Sun Nov 27 22:41:48 2016 +0100
1.2 +++ b/lib/__builtins__/buffer.py Sun Nov 27 22:47:09 2016 +0100
1.3 @@ -21,7 +21,7 @@
1.4
1.5 from native import _list_init, _list_append, _list_concat, _buffer_str
1.6
1.7 -class buffer(object):
1.8 +class buffer:
1.9
1.10 "A buffer, used to build strings."
1.11
1.12 @@ -64,4 +64,10 @@
1.13
1.14 return _buffer_str(self)
1.15
1.16 + def __repr__(self):
1.17 +
1.18 + "Return a program representation."
1.19 +
1.20 + return buffer(["buffer([", repr(str(self)), "])"])
1.21 +
1.22 # vim: tabstop=4 expandtab shiftwidth=4