diff options
author | David Lord <davidism@gmail.com> | 2021-11-10 16:45:03 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-11-10 16:45:03 -0800 |
commit | d88e771a004c34e4b863123333a259b28a2bf8f4 (patch) | |
tree | 7f5755367db9f4a03507eaedccb579e625183987 /src/click/termui.py | |
parent | 51736b9566637351362f1eaeb32ea42aecdec704 (diff) | |
download | click-d88e771a004c34e4b863123333a259b28a2bf8f4.tar.gz |
remove deprecated get_terminal_size
Diffstat (limited to 'src/click/termui.py')
-rw-r--r-- | src/click/termui.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/click/termui.py b/src/click/termui.py index cf8d5f1..19dced0 100644 --- a/src/click/termui.py +++ b/src/click/termui.py @@ -252,26 +252,6 @@ def confirm( return rv -def get_terminal_size() -> os.terminal_size: - """Returns the current size of the terminal as tuple in the form - ``(width, height)`` in columns and rows. - - .. deprecated:: 8.0 - Will be removed in Click 8.1. Use - :func:`shutil.get_terminal_size` instead. - """ - import shutil - import warnings - - warnings.warn( - "'click.get_terminal_size()' is deprecated and will be removed" - " in Click 8.1. Use 'shutil.get_terminal_size()' instead.", - DeprecationWarning, - stacklevel=2, - ) - return shutil.get_terminal_size() - - def echo_via_pager( text_or_generator: t.Union[t.Iterable[str], t.Callable[[], t.Iterable[str]], str], color: t.Optional[bool] = None, |