File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1147,11 +1147,12 @@ def pprint_thing(thing, _nest_lvl=0):
1147
1147
result = _pprint_seq (thing , _nest_lvl )
1148
1148
else :
1149
1149
# when used internally in the package, everything
1150
- # passed in should be a unicode object or have a unicode
1151
- # __str__. However as an aid to transition, we also accept
1152
- # utf8 encoded strings, if that's not it, we have no way
1153
- # to know, and the user should deal with it himself.
1154
- # so we resort to utf-8 with replacing errors
1150
+ # should be unicode text. However as an aid to transition
1151
+ # we also accept utf8 encoded strings,
1152
+ # if that's not it either, we have no way of knowing,
1153
+ # and the user should deal with it himself.
1154
+ # we resort to utf-8 with replacing errors, rather then throwing
1155
+ # an exception.
1155
1156
1156
1157
try :
1157
1158
result = unicode (thing ) # we should try this first
You can’t perform that action at this time.
0 commit comments