You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Python 3.3, the stdlib provides the function shutil.get_terminal_size(). Now that the project has dropped Python 2
support, the compatibility shim is no longer necessary.
The stdlib version returns a named tuple. So rather than indexing "0", can use the more self-documenting attribute "columns".
Since Python 3.3, the stdlib provides the function
shutil.get_terminal_size()
. Now that the project has dropped Python 2support, the compatibility shim is no longer necessary.
The stdlib version returns a named tuple. So rather than indexing "0", can use the more self-documenting attribute "columns".
Docs available at: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
The text was updated successfully, but these errors were encountered: