[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

Emanuel Barry report at bugs.python.org
Tue Apr 19 13:35:33 EDT 2016


Emanuel Barry added the comment:

On posix-based OSes, `os.get_terminal_size` might not exist ( https://hg.python.org/cpython/file/default/Modules/posixmodule.c#l12462 ), so this is needed.

New patch file with tests included.

----------
Added file: http://bugs.python.org/file42522/get_term_size_with_test.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26801>
_______________________________________


More information about the Python-bugs-list mailing list