Bläddra i källkod

Improve walk_json().

pull/24/head
Ben Kurtovic 9 år sedan
förälder
incheckning
8a2f1f022e
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. +4
    -2
      templates/api.mako

+ 4
- 2
templates/api.mako Visa fil

@@ -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>


Laddar…
Avbryt
Spara