mercurial/templater.py
changeset 3647 734e337cb816
parent 3643 b4ad640a3bcf
child 3877 abaee83ce0a6
child 3904 0dd07dd63db3
--- a/mercurial/templater.py	Wed Nov 15 15:51:58 2006 -0600
+++ b/mercurial/templater.py	Wed Nov 15 15:51:58 2006 -0600
@@ -156,8 +156,7 @@
 def stringify(thing):
     '''turn nested template iterator into string.'''
     if hasattr(thing, '__iter__'):
-        return "".join([stringify(t) for t in thing])
-    if thing is None: return ""
+        return "".join([stringify(t) for t in thing if t is not None])
     return str(thing)
 
 para_re = None