aboutsummaryrefslogtreecommitdiffstats
path: root/mako/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'mako/cache.py')
-rw-r--r--mako/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mako/cache.py b/mako/cache.py
index c60f0e8..66fb75e 100644
--- a/mako/cache.py
+++ b/mako/cache.py
@@ -4,7 +4,7 @@
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
-from mako import exceptions, util
+from mako import compat, util
_cache_plugins = util.PluginLoader("mako.cache")
@@ -64,7 +64,7 @@ class Cache(object):
def __init__(self, template, *args):
# check for a stale template calling the
# constructor
- if isinstance(template, str) and args:
+ if isinstance(template, compat.string_types) and args:
return
self.template = template
self.id = template.module.__name__