Changes between Initial Version and Version 2 of Ticket #3437
- Timestamp:
- Feb 9, 2007, 9:53:52 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3437 – Description
initial v2 1 1 code currently does effectively thus- 2 {{{ 3 #!python 2 4 if hasattr(content, '__iter__'): 3 5 self._is_string = False … … 6 8 self._is_string = True 7 9 self._container = [content] 10 }}} 8 11 9 12 Problem is that string objects support iteration. … … 11 14 Fix for it's simple; just do 12 15 16 {{{ 17 #!python 13 18 if not isinstance(content, basestring) and hasattr(content, '__iter__'): 19 }}} 14 20 15 21 (yes y'all prefer seperate patches, but it's a one liner ;)