Ticket #295 (closed enhancement: fixed)
[PATCH] Small optimization inTemplate._flatten
|Reported by:||Christoph Zwerschke <cito@…>||Owned by:||cmlenz|
I noticed two small issues in the loop in Template._flatten:
- Is it clear that substream is either a list or a string and not any other kind of sequence? If not, shouldn't be other sequences treated like lists?
- In the case that substream is a (unicode) string, it is reassembled by joining all its characters (in this line).
The attached patch fixes these problems.