Explorar el Código

Improve walk_json().

pull/24/head
Ben Kurtovic hace 9 años
padre
commit
8a2f1f022e
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      templates/api.mako

+ 4
- 2
templates/api.mako Ver fichero

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


Cargando…
Cancelar
Guardar