Kaydet (Commit) 71fd01c0 authored tarafından Just van Rossum's avatar Just van Rossum

and now the real fix...

üst 61fcf762
...@@ -504,7 +504,6 @@ class Browser: ...@@ -504,7 +504,6 @@ class Browser:
SIMPLE_TYPES = ( SIMPLE_TYPES = (
type(None), type(None),
int, int,
bool,
long, long,
float, float,
complex, complex,
...@@ -555,10 +554,8 @@ def unpack_object(object, indent = 0): ...@@ -555,10 +554,8 @@ def unpack_object(object, indent = 0):
return unpack_other(object, indent) return unpack_other(object, indent)
def unpack_sequence(seq, indent = 0): def unpack_sequence(seq, indent = 0):
items = map(None, range(len(seq)), seq) return [(i, v, not isinstance(v, SIMPLE_TYPES), indent)
items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent: for i, v in enumerate(seq)]
(k, v, not type(v) in simp, indent), items)
return items
def unpack_dict(dict, indent = 0): def unpack_dict(dict, indent = 0):
items = dict.items() items = dict.items()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment