Mercurial > genshi > genshi-test
changeset 8:ea47069a901c
`Stream.render()` was masking `TypeError`s (fix based on suggestion by Matt Good).
author | cmlenz |
---|---|
date | Sun, 04 Jun 2006 10:59:25 +0000 |
parents | e0f230569eb1 |
children | 3dc28e165273 |
files | markup/core.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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