summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-12-13 11:07:20 (GMT)
committerJust van Rossum <just@letterror.com>2002-12-13 11:07:20 (GMT)
commit71fd01c0996e6440a20c563df0ab8c7d20cf2841 (patch)
tree46f5a3abc9d277846e3ce5b7fe33b7c73332e4ec /Mac/Tools
parent61fcf762944a43bce0acd05cf9f76fea73af0ef0 (diff)
downloadcpython-71fd01c0996e6440a20c563df0ab8c7d20cf2841.zip
cpython-71fd01c0996e6440a20c563df0ab8c7d20cf2841.tar.gz
cpython-71fd01c0996e6440a20c563df0ab8c7d20cf2841.tar.bz2
and now the real fix...
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PyBrowser.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py
index c92b0ca..6a63fd0 100644
--- a/Mac/Tools/IDE/PyBrowser.py
+++ b/Mac/Tools/IDE/PyBrowser.py
@@ -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()