diff options
author | Just van Rossum <just@letterror.com> | 2002-12-13 15:14:22 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-12-13 15:14:22 (GMT) |
commit | feddf77ad200ebf2f67b5c4f2fa670a58814229a (patch) | |
tree | a46855faeb75f62a6c4118698d8f012d31dc4e55 /Mac/Tools/IDE/PyBrowser.py | |
parent | 68c8138e8948d7849b027f81a59612e0dcc3b89f (diff) | |
download | cpython-feddf77ad200ebf2f67b5c4f2fa670a58814229a.zip cpython-feddf77ad200ebf2f67b5c4f2fa670a58814229a.tar.gz cpython-feddf77ad200ebf2f67b5c4f2fa670a58814229a.tar.bz2 |
another wrong assumption fixed
Diffstat (limited to 'Mac/Tools/IDE/PyBrowser.py')
-rw-r--r-- | Mac/Tools/IDE/PyBrowser.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py index 6a63fd0..d81c46f 100644 --- a/Mac/Tools/IDE/PyBrowser.py +++ b/Mac/Tools/IDE/PyBrowser.py @@ -585,9 +585,8 @@ def unpack_other(object, indent = 0): return pack_items(items, indent) def pack_items(items, indent = 0): - items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent: - (k, v, not type(v) in simp, indent), - items) + items = [(k, v, not isinstance(v, SIMPLE_TYPES), indent) + for k, v in items] return tuple_caselesssort(items) def caselesssort(alist): |