Mercurial > genshi > mirror
comparison markup/plugin.py @ 182:2f30ce3fb85e trunk
Renamed `Attributes` to `Attrs` to reduce the verbosity.
author | cmlenz |
---|---|
date | Mon, 21 Aug 2006 20:03:13 +0000 |
parents | 7b1f07496bf7 |
children | 1f6ca5028770 |
comparison
equal
deleted
inserted
replaced
181:e103b75a96ce | 182:2f30ce3fb85e |
---|---|
16 CherryPy/Buffet. | 16 CherryPy/Buffet. |
17 """ | 17 """ |
18 | 18 |
19 from pkg_resources import resource_filename | 19 from pkg_resources import resource_filename |
20 | 20 |
21 from markup.core import Attributes, Stream, QName | 21 from markup.core import Attrs, Stream, QName |
22 from markup.template import Context, Template, TemplateLoader | 22 from markup.template import Context, Template, TemplateLoader |
23 | 23 |
24 def et_to_stream(element): | 24 def et_to_stream(element): |
25 """Converts the given ElementTree element to a markup stream.""" | 25 """Converts the given ElementTree element to a markup stream.""" |
26 tag_name = element.tag | 26 tag_name = element.tag |