1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 04:27:16 +08:00

Fix import error

This commit is contained in:
Unrud 2020-09-16 06:09:37 +02:00
parent 4d46360fb6
commit c8bea42f41

View File

@ -2874,10 +2874,10 @@ def workaround_optparse_bug9161():
if hasattr(shutil, 'get_terminal_size'): # Python >= 3.3
compat_get_terminal_size = shutil.get_terminal_size
else:
from .utils import process_communicate_or_kill
_terminal_size = collections.namedtuple('terminal_size', ['columns', 'lines'])
def compat_get_terminal_size(fallback=(80, 24)):
from .utils import process_communicate_or_kill
columns = compat_getenv('COLUMNS')
if columns:
columns = int(columns)