Skip to content

Commit 1bded3f

Browse files
committed
CLN: More cleanup
1 parent c3a0c3b commit 1bded3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/printing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def as_escaped_unicode(thing, escape_chars=escape_chars):
206206

207207
return compat.text_type(result)
208208

209-
if hasattr(thing, '__next__') or hasattr(thing, 'next'):
209+
if hasattr(thing, '__next__'):
210210
return compat.text_type(thing)
211211
elif (isinstance(thing, dict) and
212212
_nest_lvl < get_option("display.pprint_nest_depth")):

0 commit comments

Comments
 (0)