Mercurial > genshi > genshi-test
comparison markup/template.py @ 145:56d534eb53f9
* Fix error in expression evaluation when the expression evaluates to an iterable that does not produce event tuples.
* The first location step in path expressions longer assumes the `descendant::` axis, but rather the `child::` axis.
* Import cleanups.
author | cmlenz |
---|---|
date | Tue, 15 Aug 2006 09:52:47 +0000 |
parents | a2edde90ad24 |
children | 7306bf730ff3 |
comparison
equal
deleted
inserted
replaced
144:28b56f09a7e1 | 145:56d534eb53f9 |
---|---|
23 import os | 23 import os |
24 import posixpath | 24 import posixpath |
25 import re | 25 import re |
26 from StringIO import StringIO | 26 from StringIO import StringIO |
27 | 27 |
28 from markup.core import Attributes, Namespace, Stream, StreamEventKind | 28 from markup.core import Attributes, Namespace, Stream, StreamEventKind, _ensure |
29 from markup.core import _ensure, START, END, START_NS, END_NS, TEXT, COMMENT | 29 from markup.core import START, END, START_NS, END_NS, TEXT, COMMENT |
30 from markup.eval import Expression | 30 from markup.eval import Expression |
31 from markup.input import XMLParser | 31 from markup.input import XMLParser |
32 from markup.path import Path | 32 from markup.path import Path |
33 | 33 |
34 __all__ = ['Context', 'BadDirectiveError', 'TemplateError', | 34 __all__ = ['Context', 'BadDirectiveError', 'TemplateError', |