aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mako/runtime.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mako/runtime.py')
-rw-r--r--lib/mako/runtime.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mako/runtime.py b/lib/mako/runtime.py
index a75e6d8..ee6c5be 100644
--- a/lib/mako/runtime.py
+++ b/lib/mako/runtime.py
@@ -288,6 +288,11 @@ def _decorate_toplevel(fn):
def go(context, *args, **kw):
def y(*args, **kw):
return render_fn(context, *args, **kw)
+ try:
+ y.__name__ = render_fn.__name__[7:]
+ except TypeError:
+ # < Python 2.4
+ pass
return fn(y)(context, *args, **kw)
return go
return decorate_render