template.py
7.96 KB
-
Tightened up the code in Template._render_tags(). · b8ed0b67
* Used re.split() instead of re.search() to avoid string slicing. * Used one "".join() instead of repeated string concatenation. * Avoided duplicate logic on loop exit (i.e. output += template).
Chris Jerdonek committed