Skip to content

Use shutil.get_terminal_size - #558

Merged
sgillies merged 5 commits into
v1from
issue529
May 18, 2022
Merged

sgillies merged 5 commits into
v1from
issue529

Conversation

@sgillies

Copy link
Copy Markdown
Contributor

click.termui.get_terminal_size is no more.

Resolves #529

click.termui.get_terminal_size is no more.

Resolves #529
@sgillies sgillies added this to the 1.4.10 milestone May 18, 2022
@sgillies sgillies self-assigned this May 18, 2022
@sgillies

Copy link
Copy Markdown
Contributor Author

I just noticed that shutil added get_terminal_size in Python 3.3. I'll find a way to keep using click's method for older Python versions. Click 8 dropped support for Python 2.x and 3.5, so we can pin the Python client to click<8 for those versions.

@sgillies

Copy link
Copy Markdown
Contributor Author

Complication: the tests of v1 don't exercise the code I patched, so we'll need some more tests.

@sgillies
sgillies merged commit cf23e0f into v1 May 18, 2022
@sgillies
sgillies deleted the issue529 branch May 18, 2022 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant