From fbf263f0f24dc7331036801b6f15a2fd3c5de7e1 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 15 Sep 2014 00:46:53 -0500 Subject: [PATCH] Try to fix shadowing bug? --- templates/api.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/api.mako b/templates/api.mako index 864a329..70962d8 100644 --- a/templates/api.mako +++ b/templates/api.mako @@ -4,7 +4,7 @@ % endfor \ <%def name="walk_json(obj, indent=0)"> - % if isinstance(obj, dict): + % if isinstance(obj, __builtins__.dict): { % for key, value in obj.iteritems(): ${do_indent(indent + 1)} @@ -12,7 +12,7 @@ % endfor ${do_indent(indent)} } - % elif isinstance(obj, list): + % elif isinstance(obj, __builtins__.list): [ % for member in obj: ${do_indent(indent + 1)}