1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Fix stty detection

This commit is contained in:
Philipp Hagemeister 2011-08-25 00:08:59 +02:00
parent fe6dc08b79
commit eb0387a848

View file

@ -2999,7 +2999,7 @@ def parseOpts():
try:
sp = subprocess.Popen(['stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out,err = sp.communicate()
return out.split()[1]
return int(out.split()[1])
except:
pass
return None