瀏覽代碼

Improve walk_json().

pull/24/head
Ben Kurtovic 9 年之前
父節點
當前提交
8a2f1f022e
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      templates/api.mako

+ 4
- 2
templates/api.mako 查看文件

@@ -13,7 +13,7 @@
% endfor
${do_indent(indent)}
}
% elif isinstance(obj, type([])):
% elif isinstance(obj, (type([]), type(()))):
[
% for member in obj:
${do_indent(indent + 1)}
@@ -21,8 +21,10 @@
% endfor
${do_indent(indent)}
]
% elif isinstance(obj, type("").__bases__[0]):
"${obj | h}"
% else:
${repr(obj) | h}
${obj | h}
% endif
</%def>\
<!DOCTYPE html>


Loading…
取消
儲存