[issue24920] shutil.get_terminal_size throws AttributeError

2015-08-25 Thread Isaac Levy
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

[issue24920] shutil.get_terminal_size throws AttributeError

2015-08-23 Thread Isaac Levy
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