summaryrefslogtreecommitdiff
path: root/mako/ext/turbogears.py
diff options
context:
space:
mode:
Diffstat (limited to 'mako/ext/turbogears.py')
-rw-r--r--mako/ext/turbogears.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mako/ext/turbogears.py b/mako/ext/turbogears.py
index 722a6b4..e37349e 100644
--- a/mako/ext/turbogears.py
+++ b/mako/ext/turbogears.py
@@ -9,7 +9,7 @@ from mako.lookup import TemplateLookup
from mako.template import Template
-class TGPlugin(object):
+class TGPlugin:
"""TurboGears compatible Template Plugin."""
@@ -51,7 +51,7 @@ class TGPlugin(object):
def render(
self, info, format="html", fragment=False, template=None # noqa
):
- if isinstance(template, compat.string_types):
+ if isinstance(template, str):
template = self.load_template(template)
# Load extra vars func if provided