equal
deleted
inserted
replaced
449 return context._load(exp[1]) |
449 return context._load(exp[1]) |
450 raise error.ParseError(_(b"expected template specifier")) |
450 raise error.ParseError(_(b"expected template specifier")) |
451 |
451 |
452 |
452 |
453 def _runrecursivesymbol(context, mapping, key): |
453 def _runrecursivesymbol(context, mapping, key): |
454 raise error.Abort(_(b"recursive reference '%s' in template") % key) |
454 raise error.InputError(_(b"recursive reference '%s' in template") % key) |
455 |
455 |
456 |
456 |
457 def buildtemplate(exp, context): |
457 def buildtemplate(exp, context): |
458 ctmpl = [compileexp(e, context, methods) for e in exp[1:]] |
458 ctmpl = [compileexp(e, context, methods) for e in exp[1:]] |
459 return (templateutil.runtemplate, ctmpl) |
459 return (templateutil.runtemplate, ctmpl) |