1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 23:24:16 +01:00

Change 'subprocess.check_call' to 'subprocess.check_output' in ''utils.output'

This commit is contained in:
dalgr 2017-10-10 20:58:46 +01:00 committed by Johan Andersson
parent 59d2513dee
commit 328ad0cff9

View File

@ -51,8 +51,8 @@ def _get_terminal_size_tput():
# get terminal width # get terminal width
# src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window # src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window
try: try:
cols = int(subprocess.check_call(shlex.split('tput cols'))) cols = int(subprocess.check_output(shlex.split('tput cols')))
rows = int(subprocess.check_call(shlex.split('tput lines'))) rows = int(subprocess.check_output(shlex.split('tput lines')))
return (cols, rows) return (cols, rows)
except: except:
pass pass