Some long overdue maintainance. Made all IDE sources 7-bit-clean, to avoid any further encoding conversion troubles.

This commit is contained in:
Just van Rossum 2001-06-19 21:37:33 +00:00
parent 9020bcebc8
commit dc3c617cb8
14 changed files with 86 additions and 84 deletions

View file

@ -38,7 +38,7 @@ def double_repr(key, value, truncvalue = 0,
value = _repr(value)
'' + value # test to see if it is a string, in case a __repr__ method is buggy
except:
value = ' exception in repr()'
value = '\xa5\xa5\xa5 exception in repr()'
if truncvalue:
return key + '\t' + value[:255]
return key + '\t' + value
@ -360,7 +360,7 @@ INDEXING_TYPES = (
def unpack_object(object, indent = 0):
tp = type(object)
if tp in SIMPLE_TYPES and tp is not types.NoneType:
raise TypeError, 'canÕt browse simple type: %s' % tp.__name__
raise TypeError, "can't browse simple type: %s" % tp.__name__
elif tp == types.DictionaryType:
return unpack_dict(object, indent)
elif tp in (types.TupleType, types.ListType):