# HG changeset patch # User Matt Mackall # Date 2006-11-15 21:51:58 # Node ID 734e337cb8165e96d7a208c47c1cf3d8940b1a3a # Parent 069f3acdad6c12063a8afd7cf62d93c2b0569f56 further simplify stringify diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -156,8 +156,7 @@ def age(date): 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