Skip to content

[3.14] gh-154874: Fix the sign of curses.termattrs() (GH-154875) (GH-155548) - #162542

Open
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-fe1f5a5-3.14
Open

miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-fe1f5a5-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

termattrs() returns a chtype mask, but it was routed through an int, so a
terminal that advertises A_ITALIC came back negative and the result could
no longer be passed to the attribute functions.

(cherry picked from commit 0b083c4)
(cherry picked from commit fe1f5a5)

Co-authored-by: Sankalp Thakur 31366524+sankalpsthakur@users.noreply.github.com
Co-authored-by: Vyron Vasileiadis hi@fedonman.com
Signed-off-by: Sankalp Thakur sankalphimself@gmail.com

…154875) (pythonGH-155548)

termattrs() returns a chtype mask, but it was routed through an int, so a
terminal that advertises A_ITALIC came back negative and the result could
no longer be passed to the attribute functions.

(cherry picked from commit 0b083c4)
(cherry picked from commit fe1f5a5)

Co-authored-by: Sankalp Thakur <31366524+sankalpsthakur@users.noreply.github.com>
Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>
@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@serhiy-storchaka

Copy link
Copy Markdown
Member

@sankalpsthakur, the CLA check fails here because the squash merge of #155548 recorded your GitHub noreply address, 31366524+sankalpsthakur@users.noreply.github.com, as the commit author, and that address is not on your CLA record. Could you add it at https://cla.python.org/ (or sign the CLA with it)? The check should then pass on a re-run.

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