##// END OF EJS Templates
further simplify stringify
Matt Mackall -
r3647:734e337c default
parent child Browse files
Show More
@@ -156,8 +156,7 b' def age(date):'
156 156 def stringify(thing):
157 157 '''turn nested template iterator into string.'''
158 158 if hasattr(thing, '__iter__'):
159 return "".join([stringify(t) for t in thing])
160 if thing is None: return ""
159 return "".join([stringify(t) for t in thing if t is not None])
161 160 return str(thing)
162 161
163 162 para_re = None
General Comments 0
You need to be logged in to leave comments. Login now