Edgewall Software

Changeset 403 for trunk/genshi/input.py


Ignore:
Timestamp:
Nov 2, 2006, 12:38:10 PM (17 years ago)
Author:
cmlenz
Message:

Fixed __repr__ of the QName, Attrs, and Expression classes so that the output can be used as code to instantiate the object again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r390 r403  
    6565    >>> for kind, data, pos in parser:
    6666    ...     print kind, data
    67     START (u'root', [(u'id', u'2')])
    68     START (u'child', [])
     67    START (QName(u'root'), Attrs([(QName(u'id'), u'2')]))
     68    START (QName(u'child'), Attrs())
    6969    TEXT Foo
    7070    END child
     
    243243    >>> for kind, data, pos in parser:
    244244    ...     print kind, data
    245     START (u'ul', [(u'compact', u'compact')])
    246     START (u'li', [])
     245    START (QName(u'ul'), Attrs([(QName(u'compact'), u'compact')]))
     246    START (QName(u'li'), Attrs())
    247247    TEXT Foo
    248248    END li
Note: See TracChangeset for help on using the changeset viewer.