##// 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 def stringify(thing):
156 def stringify(thing):
157 '''turn nested template iterator into string.'''
157 '''turn nested template iterator into string.'''
158 if hasattr(thing, '__iter__'):
158 if hasattr(thing, '__iter__'):
159 return "".join([stringify(t) for t in thing])
159 return "".join([stringify(t) for t in thing if t is not None])
160 if thing is None: return ""
161 return str(thing)
160 return str(thing)
162
161
163 para_re = None
162 para_re = None
General Comments 0
You need to be logged in to leave comments. Login now