[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE PyBrowser.py,1.6,1.7
Jack Jansen
jackjansen@users.sourceforge.net
Thu, 17 May 2001 05:36:41 -0700
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv26263/Python/Mac/Tools/IDE
Modified Files:
PyBrowser.py
Log Message:
Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the
same macroman characters.
Index: PyBrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyBrowser.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** PyBrowser.py 2001/03/01 23:15:54 1.6
--- PyBrowser.py 2001/05/17 12:36:39 1.7
***************
*** 39,43 ****
'' + value # test to see if it is a string, in case a __repr__ method is buggy
except:
! value = '€€€ exception in repr()'
if truncvalue:
return key + '\t' + value[:255]
--- 39,43 ----
'' + value # test to see if it is a string, in case a __repr__ method is buggy
except:
! value = '‚‚‚ exception in repr()'
if truncvalue:
return key + '\t' + value[:255]
***************
*** 361,365 ****
tp = type(object)
if tp in SIMPLE_TYPES and tp is not types.NoneType:
! raise TypeError, 'can¹t browse simple type: %s' % tp.__name__
elif tp == types.DictionaryType:
return unpack_dict(object, indent)
--- 361,365 ----
tp = type(object)
if tp in SIMPLE_TYPES and tp is not types.NoneType:
! raise TypeError, 'canÕt browse simple type: %s' % tp.__name__
elif tp == types.DictionaryType:
return unpack_dict(object, indent)