Skip to content

Commit e14ea08

Browse files
y-pwesm
y-p
authored andcommitted
CLN: clean up comment
1 parent 27b454d commit e14ea08

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/core/common.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,11 +1147,12 @@ def pprint_thing(thing, _nest_lvl=0):
11471147
result = _pprint_seq(thing, _nest_lvl)
11481148
else:
11491149
# 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.
11551156

11561157
try:
11571158
result = unicode(thing) # we should try this first

0 commit comments

Comments
 (0)