Ticket #13186: __init__.diff

File __init__.diff, 552 bytes (added by Eloff, 15 years ago)
Line 
1364,365c364,372
2< return ''.join(self._container)
3< return smart_str(''.join(self._container), self._charset)
4---
5> s = ''.join(self._container)
6> else:
7> s = smart_str(''.join(self._container), self._charset)
8>
9> # Since we just converted this iterable to a string, there's no point leaving it as an iterable
10> # future calls to _get_content will return this string rather than recreate it
11> self._container = [s]
12> self._is_string = True
13> return s
Back to Top