Skip to content

[3.15] Make os.get_terminal_size check isatty before calling ioctl (GH-154885) - #154903

Merged
freakboy3742 merged 1 commit into
python:3.15from
miss-islington:backport-51ae3c0-3.15
Jul 30, 2026
Merged

[3.15] Make os.get_terminal_size check isatty before calling ioctl (GH-154885)#154903
freakboy3742 merged 1 commit into
python:3.15from
miss-islington:backport-51ae3c0-3.15

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

Calling ioctl on stdout raises warnings on Android. Ensure we have a TTY
before doing terminal size calls.
(cherry picked from commit 51ae3c0)

Co-authored-by: Malcolm Smith smith@chaquo.com

…thonGH-154885)

Calling ioctl on stdout raises warnings on Android. Ensure we have a TTY
before doing terminal size calls.
(cherry picked from commit 51ae3c0ee585e2bc56d0a58c619eefa1b4b4f929)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
@freakboy3742
freakboy3742 enabled auto-merge (squash) July 30, 2026 02:05
@freakboy3742
freakboy3742 merged commit cfd8e2a into python:3.15 Jul 30, 2026
61 checks passed
@miss-islington
miss-islington deleted the backport-51ae3c0-3.15 branch July 30, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants