From 328ad0cff93be5115e442dd5eeb0b4abb6b38d2b Mon Sep 17 00:00:00 2001 From: dalgr Date: Tue, 10 Oct 2017 20:58:46 +0100 Subject: [PATCH] Change 'subprocess.check_call' to 'subprocess.check_output' in ''utils.output' --- lib/svtplay_dl/utils/terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/utils/terminal.py b/lib/svtplay_dl/utils/terminal.py index a4d9b2d..211ccf8 100644 --- a/lib/svtplay_dl/utils/terminal.py +++ b/lib/svtplay_dl/utils/terminal.py @@ -51,8 +51,8 @@ def _get_terminal_size_tput(): # get terminal width # src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window try: - cols = int(subprocess.check_call(shlex.split('tput cols'))) - rows = int(subprocess.check_call(shlex.split('tput lines'))) + cols = int(subprocess.check_output(shlex.split('tput cols'))) + rows = int(subprocess.check_output(shlex.split('tput lines'))) return (cols, rows) except: pass