Skip to content

fix: avoid zerodivisionerrors in no-tty usecase#298

Closed
TheKevJames wants to merge 1 commit into
python-poetry:mainfrom
TheKevJames:kjames/fix-nontty
Closed

fix: avoid zerodivisionerrors in no-tty usecase#298
TheKevJames wants to merge 1 commit into
python-poetry:mainfrom
TheKevJames:kjames/fix-nontty

Conversation

@TheKevJames

Copy link
Copy Markdown

Fix for python-poetry/poetry#7184, which discovered that this would
lead to ZeroDivisionErrors as columns will be 0 for Python <3.11
running without a TTY.

Fix for python-poetry/poetry#7184, which discovered that this would
lead to ZeroDivisionErrors as `columns` will be `0` for Python <3.11
running without a TTY.
@neersighted

Copy link
Copy Markdown
Member

A Cleo maintainer is working on a better fix with test coverage, so this will likely be declined. However, feel free to leave it open until a successor materializes.

@Secrus

Secrus commented Jun 14, 2023

Copy link
Copy Markdown
Member

Superseded by #299

@Secrus Secrus closed this Jun 14, 2023
@TheKevJames TheKevJames deleted the kjames/fix-nontty branch June 15, 2023 15:23
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.

3 participants