Isaac Levy added the comment:
I guess users need to check standard streams for None. There's not many uses of
stream attributes in core libs.
Maybe catch should be Exception -- since it's documented to return a fallback
on error.
--
___
Python
New submission from Isaac Levy:
OS: windows 7, python 3.4.3, tk version 8.6.1
os.get_terminal_size also fails.
shutil.get_terminal_size()
Traceback (most recent call last):
File pyshell#4, line 1, in module
shutil.get_terminal_size()
File C:\Python34\lib\shutil.py, line 1058