summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-26 01:29:01 -0400
committerChris McDonough <chrism@plope.com>2010-10-26 01:29:01 -0400
commit8df795a82d4ee0a5670964ad18f7cfa54583aedb (patch)
treeef40052bcdbbbd5067a0c1ffdd67ad2b9fa36ce5
parentfdb0733da2365a95b7e929b7e10eb0721e3e7abb (diff)
downloadpyramid-8df795a82d4ee0a5670964ad18f7cfa54583aedb.tar.gz
pyramid-8df795a82d4ee0a5670964ad18f7cfa54583aedb.tar.bz2
pyramid-8df795a82d4ee0a5670964ad18f7cfa54583aedb.zip
dont import mako unnecessarily
-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: