summaryrefslogtreecommitdiff
path: root/jinja2/runtime.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2010-05-23 22:58:28 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2010-05-23 22:58:28 +0200
commit5a5ce730ee6e49aad63933efec9b1b54ed1e42a0 (patch)
tree778f9b7f2ebcaa2f697b846fdffd038f0915d0c8 /jinja2/runtime.py
parent93d2df782dd7e9c50799b0ddb20a8d80defdff86 (diff)
downloadjinja2-5a5ce730ee6e49aad63933efec9b1b54ed1e42a0.tar.gz
Fixed a failing testcase. (Error caused by constant folding of undefined
values) --HG-- branch : trunk
Diffstat (limited to 'jinja2/runtime.py')
-rw-r--r--jinja2/runtime.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/jinja2/runtime.py b/jinja2/runtime.py
index 1961e9f..a89812f 100644
--- a/jinja2/runtime.py
+++ b/jinja2/runtime.py
@@ -10,10 +10,9 @@
"""
import sys
from itertools import chain, imap
-from jinja2.nodes import EvalContext
+from jinja2.nodes import EvalContext, _context_function_types
from jinja2.utils import Markup, partial, soft_unicode, escape, missing, \
- concat, MethodType, FunctionType, internalcode, next, \
- object_type_repr
+ concat, internalcode, next, object_type_repr
from jinja2.exceptions import UndefinedError, TemplateRuntimeError, \
TemplateNotFound
@@ -24,10 +23,6 @@ __all__ = ['LoopContext', 'TemplateReference', 'Macro', 'Markup',
'markup_join', 'unicode_join', 'to_string',
'TemplateNotFound']
-
-#: the types we support for context functions
-_context_function_types = (FunctionType, MethodType)
-
#: the name of the function that is used to convert something into
#: a string. 2to3 will adopt that automatically and the generated
#: code can take advantage of it.