File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ Performance Improvements
3838Bug Fixes
3939~~~~~~~~~
4040
41+ - Silenced a warning on some Windows environments about "tput: terminal attributes: No such device or address" when
42+ detecting the terminal size. This fix only applies to python 3 (:issue:`16496`)
4143- Bug in using ``pathlib.Path`` or ``py.path.local`` objects with io functions (:issue:`16291`)
4244- Bug in ``DataFrame.update()`` with ``overwrite=False`` and ``NaN values`` (:issue:`15593`)
4345- Passing an invalid engine to :func:`read_csv` now raises an informative
Original file line number Diff line number Diff line change 1414from __future__ import print_function
1515
1616import os
17+ import sys
18+ import shutil
1719
1820__all__ = ['get_terminal_size' ]
1921
@@ -26,6 +28,10 @@ def get_terminal_size():
2628 IPython zmq frontends, or IDLE do not run in a terminal,
2729 """
2830 import platform
31+
32+ if sys .version_info [0 ] >= 3 :
33+ return shutil .get_terminal_size ()
34+
2935 current_os = platform .system ()
3036 tuple_xy = None
3137 if current_os == 'Windows' :
You can’t perform that action at this time.
0 commit comments