Changes between Initial Version and Version 2 of Ticket #3437


Ignore:
Timestamp:
02/09/2007 09:53:52 PM (9 years ago)
Author:
adrian
Comment:

(Fixed formatting in description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3437

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • 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