You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/09/04 03:41:39 UTC
[buildstream] branch bst-1 updated: Fix click deprecation warning
for get_terminal_size This was missed in
cb91707b3b473c4562f13263e057ffa255b87e80
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch bst-1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
The following commit(s) were added to refs/heads/bst-1 by this push:
new a375b5d Fix click deprecation warning for get_terminal_size This was missed in cb91707b3b473c4562f13263e057ffa255b87e80
new 54c0377 Merge pull request #1514 from nanonyme/click-deprecation
a375b5d is described below
commit a375b5dd70573575b17f51c921c5ad8cbdacb16c
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Fri Sep 3 20:13:03 2021 +0300
Fix click deprecation warning for get_terminal_size
This was missed in cb91707b3b473c4562f13263e057ffa255b87e80
---
buildstream/_frontend/status.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildstream/_frontend/status.py b/buildstream/_frontend/status.py
index 1efba3d..63c53dd 100644
--- a/buildstream/_frontend/status.py
+++ b/buildstream/_frontend/status.py
@@ -246,7 +246,7 @@ class Status():
return term_caps
def _check_term_width(self):
- term_width, _ = click.get_terminal_size()
+ term_width, _ = shutil.get_terminal_size()
if self._term_width != term_width:
self._term_width = term_width
self._need_alloc = True