Mercurial > genshi > mirror
changeset 459:9101eb8a68b6 stable-0.4.x
Port [554] to stable.
author | cmlenz |
---|---|
date | Tue, 17 Apr 2007 18:44:57 +0000 |
parents | d79b1c624a30 |
children | af0122a5aa4b |
files | ChangeLog genshi/input.py |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ (?, from branches/stable/0.4.x) * Fix incorrect reference to translation function in the I18N filter. + * The `ET()` function now correctly handles attributes with a namespace. Version 0.4
--- a/genshi/input.py +++ b/genshi/input.py @@ -39,7 +39,8 @@ :return: a markup stream """ tag_name = QName(element.tag.lstrip('{')) - attrs = Attrs([(QName(attr), value) for attr, value in element.items()]) + attrs = Attrs([(QName(attr.lstrip('{')), value) + for attr, value in element.items()]) yield START, (tag_name, attrs), (None, -1, -1) if element.text: