# HG changeset patch # User Paul Boddie # Date 1479907550 -3600 # Node ID e5aa9e58703e69464e1bded4bd189b044f073a14 # Parent 2f7e8ca70d895397a58c3432f571ecf682c6a70a Automatically convert non-buffer, non-string objects to strings for appending. diff -r 2f7e8ca70d89 -r e5aa9e58703e lib/__builtins__/buffer.py --- a/lib/__builtins__/buffer.py Wed Nov 23 14:24:53 2016 +0100 +++ b/lib/__builtins__/buffer.py Wed Nov 23 14:25:50 2016 +0100 @@ -53,7 +53,7 @@ elif isinstance(s, string): _list_append(self, s) else: - raise TypeError(s) + _list_append(self, str(s)) def __str__(self):