Skip to content

Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility - #2391

Open
Mab879 wants to merge 1 commit into
OpenSCAP:mainfrom
Mab879:backport_python2_patch
Open

Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility#2391
Mab879 wants to merge 1 commit into
OpenSCAP:mainfrom
Mab879:backport_python2_patch

Conversation

@Mab879

@Mab879 Mab879 commented Jul 28, 2026

Copy link
Copy Markdown
Member

@Mab879 Mab879 added this to the 1.4.5 milestone Jul 28, 2026
@jan-cerny jan-cerny self-assigned this Aug 10, 2026
Comment thread swig/openscap.i
Comment on lines +51 to +52
else if (PyLong_Check($input))
$1 = (time_t) PyLong_AsLong($input);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as the previous branch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please elaborate, this is (now) rebased on latest main so this shouldn't be the case?

@Mab879
Mab879 force-pushed the backport_python2_patch branch from a9dfc2c to b2168a9 Compare August 12, 2026 15:21
@Mab879
Mab879 requested a review from jan-cerny August 12, 2026 15:21
@Mab879
Mab879 force-pushed the backport_python2_patch branch from b2168a9 to 5d723d1 Compare August 12, 2026 17:37
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants