aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mako/ext/turbogears.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/ext/turbogears.py b/mako/ext/turbogears.py
index d1a6a90..a1e3ab8 100644
--- a/mako/ext/turbogears.py
+++ b/mako/ext/turbogears.py
@@ -47,7 +47,7 @@ class TGPlugin(object):
return self.lookup.get_template(templatename)
def render(self, info, format="html", fragment=False, template=None):
- if isinstance(template, str if compat.py3k else basestring):
+ if isinstance(template, compat.string_types):
template = self.load_template(template)
# Load extra vars func if provided