Skip to content

Commit 9e5b803

Browse files
committed
capture_output is python 3.7 or higher
1 parent f16b5b8 commit 9e5b803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vsc/utils/generaloption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def set_columns(cols=None):
6767
if cols is None:
6868
if os.path.exists(STTY):
6969
try:
70-
proc = subprocess.run(['/usr/bin/stty', 'size'], capture_output=True)
70+
proc = subprocess.run(['/usr/bin/stty', 'size'], stdout=subprocess.PIPE)
7171
cols = str(proc.stdout.splitlines()[0].decode('utf-8').split(' ')[1])
7272
except (AttributeError, IndexError, OSError, ValueError):
7373
# do nothing

0 commit comments

Comments
 (0)