Skip to content

Commit 4e6aa1c

Browse files
authored
MAINT: Remove console_encode comments (pandas-dev#20645)
Closes pandas-devgh-20616
1 parent e8f206d commit 4e6aa1c

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

pandas/io/formats/printing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ def _join_unicode(lines, sep=''):
8181
# It will always return unicode text which can handled by other
8282
# parts of the package without breakage.
8383
#
84-
# 2) If you need to send something to the console, use console_encode().
85-
#
86-
# console_encode() should (hopefully) choose the right encoding for you
87-
# based on the encoding set in option "display.encoding"
88-
#
89-
# 3) if you need to write something out to file, use
84+
# 2) if you need to write something out to file, use
9085
# pprint_thing_encoded(encoding).
9186
#
9287
# If no encoding is specified, it defaults to utf-8. Since encoding pure

pandas/tests/io/formats/test_printing.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,3 @@ def test_enable_data_resource_formatter(self):
202202
assert formatters[mimetype].enabled
203203
# smoke test that it works
204204
self.display_formatter.format(cf)
205-
206-
207-
# TODO: fix this broken test
208-
209-
# def test_console_encode():
210-
# """
211-
# On Python 2, if sys.stdin.encoding is None (IPython with zmq frontend)
212-
# common.console_encode should encode things as utf-8.
213-
# """
214-
# if compat.PY3:
215-
# pytest.skip
216-
217-
# with tm.stdin_encoding(encoding=None):
218-
# result = printing.console_encode(u"\u05d0")
219-
# expected = u"\u05d0".encode('utf-8')
220-
# assert (result == expected)

0 commit comments

Comments
 (0)