summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/mako_templating.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyramid/mako_templating.py b/pyramid/mako_templating.py
index 7c1c7ed7a..5523583c3 100644
--- a/pyramid/mako_templating.py
+++ b/pyramid/mako_templating.py
@@ -1,8 +1,6 @@
from zope.interface import implements
from zope.interface import Interface
-from mako.lookup import TemplateLookup
-
from pyramid.interfaces import ITemplateRenderer
from pyramid.exceptions import ConfigurationError
from pyramid.threadlocal import get_current_registry
@@ -14,6 +12,7 @@ class IMakoLookup(Interface):
pass
def renderer_factory(path):
+ from mako.lookup import TemplateLookup
registry = get_current_registry()
lookup = registry.queryUtility(IMakoLookup)
if lookup is None: