mercurial/hgweb.py
changeset 1160 0da98529a476
parent 1159 b6f5a947e62e
child 1161 7654d8f2ccf6
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -75,6 +75,8 @@ class hgrequest:
             else:
                 try:
                     self.out.write(thing)
+                except TypeError:
+                    self.out.write(str(thing))
                 except socket.error, x:
                     if x[0] != errno.ECONNRESET:
                         raise