From: Just van Rossum Date: Fri, 13 Dec 2002 15:14:22 +0000 (+0000) Subject: another wrong assumption fixed X-Git-Tag: v2.3c1~3028 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=feddf77ad200ebf2f67b5c4f2fa670a58814229a;p=python another wrong assumption fixed --- diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py index 6a63fd036d..d81c46f2b1 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):