Changes between Initial Version and Version 2 of Ticket #3437


Ignore:
Timestamp:
Feb 9, 2007, 9:53:52 PM (18 years ago)
Author:
Adrian Holovaty
Comment:

(Fixed formatting in description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3437 – Description

    initial v2  
    11code currently does effectively thus-
     2{{{
     3#!python
    24if hasattr(content, '__iter__'):
    35 self._is_string = False
     
    68 self._is_string = True
    79 self._container = [content]
     10}}}
    811
    912Problem is that string objects support iteration.
     
    1114Fix for it's simple; just do
    1215
     16{{{
     17#!python
    1318if not isinstance(content, basestring) and hasattr(content, '__iter__'):
     19}}}
    1420
    1521(yes y'all prefer seperate patches, but it's a one liner ;)
Back to Top