mirror of
https://github.com/python/cpython.git
synced 2025-09-13 04:08:37 +00:00
re-checkin with "ISO-8859 translation" turned on.
This commit is contained in:
parent
b8bf163dde
commit
edab93939e
12 changed files with 58 additions and 58 deletions
|
@ -36,7 +36,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 = '€€€ exception in repr()'
|
||||
if truncvalue:
|
||||
return key + '\t' + value[:255]
|
||||
return key + '\t' + value
|
||||
|
@ -358,7 +358,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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue