summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Magamedov <vladimir@magamedov.com>2013-09-17 22:06:37 +0300
committerVladimir Magamedov <vladimir@magamedov.com>2013-09-17 22:07:57 +0300
commit8cccf4a8a83f90720d6f75ebc1a1b31f4cef3182 (patch)
treec43a5167ff652cd66538bd9384eee70fb0b16ec7
parentf163df2dc04da74fd4b80db412b1a3e01f4f450f (diff)
downloadmako-8cccf4a8a83f90720d6f75ebc1a1b31f4cef3182.tar.gz
Using compat.string_types instead of "str if compat.py3k else basestring" in TGPlugin.render method.
-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