# HG changeset patch # User cmlenz # Date 1149418765 0 # Node ID ea47069a901c30649d13f3e0daa394203e4aba2d # Parent e0f230569eb1935f6a3e3c7968a3e7d389dc193c `Stream.render()` was masking `TypeError`s (fix based on suggestion by Matt Good). diff --git a/markup/core.py b/markup/core.py --- a/markup/core.py +++ b/markup/core.py @@ -85,10 +85,10 @@ Any additional keyword arguments are passed to the serializer, and thus depend on the `method` parameter value. """ - retval = u''.join(self.serialize(method=method, **kwargs)) + output = u''.join(list(self.serialize(method=method, **kwargs))) if encoding is not None: - return retval.encode('utf-8') - return retval + return output.encode('utf-8') + return output def select(self, path): """Return a new stream that contains the events matching the given