[compat] Allow overriding by only COLUMNS or LINES in compat_get_terminal_size
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 13 Sep 2015 12:04:27 +0000 (20:04 +0800)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 2 Oct 2015 22:00:33 +0000 (00:00 +0200)
commit13118a50b88c26fe5d932eccf77e297249a78634
tree61c81e2a63393e3adbd9b58e9763f477c0f09897
parent5495937f461268a850a6a54d3fe19ed1f0f01eef
[compat] Allow overriding by only COLUMNS or LINES in compat_get_terminal_size

Now the semantic of this function is identical to
shutil.get_terminal_size() in Python 3.3+. The new behavior also
corresponds to the old get_term_width(), which is removed in
003c69a84b68cadb46aeb8e03115848a722fd675
youtube_dl/compat.py