Edgewall Software

Changeset 554 for trunk/genshi/input.py


Ignore:
Timestamp:
Apr 17, 2007, 8:35:29 PM (16 years ago)
Author:
cmlenz
Message:

The ET() function now correctly handles attributes with a namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r526 r554  
    4040    """
    4141    tag_name = QName(element.tag.lstrip('{'))
    42     attrs = Attrs([(QName(attr), value) for attr, value in element.items()])
     42    attrs = Attrs([(QName(attr.lstrip('{')), value)
     43                   for attr, value in element.items()])
    4344
    4445    yield START, (tag_name, attrs), (None, -1, -1)
Note: See TracChangeset for help on using the changeset viewer.