mercurial/templater.py
changeset 8015 b5db7dcc1497
parent 7966 aa983c3d94a9
child 8194 63c47e4ac617
--- a/mercurial/templater.py	Mon Apr 06 10:51:45 2009 +0200
+++ b/mercurial/templater.py	Mon Apr 06 16:26:57 2009 +0200
@@ -209,6 +209,6 @@
 
 def stringify(thing):
     '''turn nested template iterator into string.'''
-    if hasattr(thing, '__iter__'):
+    if hasattr(thing, '__iter__') and not isinstance(thing, str):
         return "".join([stringify(t) for t in thing if t is not None])
     return str(thing)