[Python-checkins] python/dist/src/Mac/Tools/IDE PyBrowser.py,1.19,1.20
jvr@users.sourceforge.net
jvr@users.sourceforge.net
2002年12月13日 03:07:22 -0800
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory sc8-pr-cvs1:/tmp/cvs-serv16455
Modified Files:
PyBrowser.py
Log Message:
and now the real fix...
Index: PyBrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyBrowser.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** PyBrowser.py 13 Dec 2002 10:58:10 -0000 1.19
--- PyBrowser.py 13 Dec 2002 11:07:20 -0000 1.20
***************
*** 505,509 ****
type(None),
int,
- bool,
long,
float,
--- 505,508 ----
***************
*** 556,563 ****
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
def unpack_dict(dict, indent = 0):
--- 555,560 ----
def unpack_sequence(seq, indent = 0):
! return [(i, v, not isinstance(v, SIMPLE_TYPES), indent)
! for i, v in enumerate(seq)]
def unpack_dict(dict, indent = 0):