diff markup/core.py @ 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 5da45906dda7
children 3dc28e165273
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
Copyright (C) 2012-2017 Edgewall Software