]> granicus.if.org Git - python/commitdiff
and now the real fix...
authorJust van Rossum <just@letterror.com>
Fri, 13 Dec 2002 11:07:20 +0000 (11:07 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 13 Dec 2002 11:07:20 +0000 (11:07 +0000)
Mac/Tools/IDE/PyBrowser.py

index c92b0ca69f8e621f1c68eab50e702818fd652845..6a63fd036d719ba917582961124d1718e61a17a8 100644 (file)
@@ -504,7 +504,6 @@ class Browser:
 SIMPLE_TYPES = (
        type(None),
        int,
-       bool,
        long,
        float,
        complex,
@@ -555,10 +554,8 @@ def unpack_object(object, indent = 0):
                return unpack_other(object, indent)
 
 def unpack_sequence(seq, indent = 0):
-       items = map(None, range(len(seq)), seq)
-       items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent: 
-                               (k, v, not type(v) in simp, indent), items)
-       return items
+       return [(i, v, not isinstance(v, SIMPLE_TYPES), indent)
+                for i, v in enumerate(seq)]
 
 def unpack_dict(dict, indent = 0):
        items = dict.items()