Mercurial > genshi > mirror
diff genshi/template/eval.py @ 606:37ff75bb4301 trunk
Changed the default error handling mode to "strict".
author | cmlenz |
---|---|
date | Mon, 27 Aug 2007 20:05:31 +0000 |
parents | 416e46209da1 |
children | 25d0368491ac 23b5138fd835 |
line wrap: on
line diff
--- a/genshi/template/eval.py +++ b/genshi/template/eval.py @@ -38,7 +38,7 @@ """Abstract base class for the `Expression` and `Suite` classes.""" __slots__ = ['source', 'code', 'ast', '_globals'] - def __init__(self, source, filename=None, lineno=-1, lookup='lenient', + def __init__(self, source, filename=None, lineno=-1, lookup='strict', xform=None): """Create the code object, either from a string, or from an AST node. @@ -48,8 +48,8 @@ the code :param lineno: the number of the line on which the code was found :param lookup: the lookup class that defines how variables are looked - up in the context. Can be either `LenientLookup` (the - default), `StrictLookup`, or a custom lookup class + up in the context; can be either "strict" (the default), + "lenient", or a custom lookup class :param xform: the AST transformer that should be applied to the code; if `None`, the appropriate transformation is chosen depending on the mode