Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71fd01c

Browse files
committed
and now the real fix...
1 parent 61fcf76 commit 71fd01c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Mac/Tools/IDE/PyBrowser.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ def update(self):
504504
SIMPLE_TYPES = (
505505
type(None),
506506
int,
507-
bool,
508507
long,
509508
float,
510509
complex,
@@ -555,10 +554,8 @@ def unpack_object(object, indent = 0):
555554
return unpack_other(object, indent)
556555

557556
def unpack_sequence(seq, indent = 0):
558-
items = map(None, range(len(seq)), seq)
559-
items = map(lambda (k, v), type = type, simp = SIMPLE_TYPES, indent = indent:
560-
(k, v, not type(v) in simp, indent), items)
561-
return items
557+
return [(i, v, not isinstance(v, SIMPLE_TYPES), indent)
558+
for i, v in enumerate(seq)]
562559

563560
def unpack_dict(dict, indent = 0):
564561
items = dict.items()

0 commit comments

Comments
 (0)