summaryrefslogtreecommitdiff
path: root/jinja2/runtime.py
diff options
context:
space:
mode:
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.