Edgewall Software

Changeset 1080 for trunk/genshi/input.py


Ignore:
Timestamp:
Nov 12, 2009, 4:09:26 PM (14 years ago)
Author:
cmlenz
Message:

Avoid unicode literals in reprs of QName and Namespace when not necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r1079 r1080  
    8989    >>> for kind, data, pos in parser:
    9090    ...     print('%s %s' % (kind, data))
    91     START (QName(u'root'), Attrs([(QName(u'id'), u'2')]))
    92     START (QName(u'child'), Attrs())
     91    START (QName('root'), Attrs([(QName('id'), u'2')]))
     92    START (QName('child'), Attrs())
    9393    TEXT Foo
    9494    END child
     
    290290    >>> for kind, data, pos in parser:
    291291    ...     print('%s %s' % (kind, data))
    292     START (QName(u'ul'), Attrs([(QName(u'compact'), u'compact')]))
    293     START (QName(u'li'), Attrs())
     292    START (QName('ul'), Attrs([(QName('compact'), u'compact')]))
     293    START (QName('li'), Attrs())
    294294    TEXT Foo
    295295    END li
Note: See TracChangeset for help on using the changeset viewer.