Skip to content

refactor(twisted/consumer): update asyncio.iscoroutinefunction to inspect.iscoroutine#558

Open
servusdei2018 wants to merge 5 commits intofedora-infra:developfrom
servusdei2018:develop
Open

refactor(twisted/consumer): update asyncio.iscoroutinefunction to inspect.iscoroutine#558
servusdei2018 wants to merge 5 commits intofedora-infra:developfrom
servusdei2018:develop

Conversation

@servusdei2018
Copy link
Copy Markdown

Fixes #546

asyncio.iscoroutinefunction is deprecated as of Python 3.14 (stable) and will be removed in Python 3.16.

This PR changes those deprecated references to use inspect.iscoroutinefunction, added in Python 3.5.

…pect.iscoroutine

Signed-off-by: Nate Bracy <nate@bracy.dev>
Signed-off-by: Nate Bracy <nate@bracy.dev>
@AdamWill
Copy link
Copy Markdown
Contributor

This would also need to change the comment block that states a specific reason for using asyncio. over inspect. And we should verify that we don't need this to work on Python < 3.10, which isn't a safe assumption - RHEL 9's system Python is 3.9, so if we run anything that uses fedora-messaging on EL 9, it could potentially be an issue.

…n 3.9-

Signed-off-by: Nate <37554478+servusdei2018@users.noreply.github.com>
@servusdei2018
Copy link
Copy Markdown
Author

This would also need to change the comment block that states a specific reason for using asyncio. over inspect. And we should verify that we don't need this to work on Python < 3.10, which isn't a safe assumption - RHEL 9's system Python is 3.9, so if we run anything that uses fedora-messaging on EL 9, it could potentially be an issue.

@AdamWill Just added backwards compatibility for Python pre-3.10.

servusdei2018 and others added 2 commits February 24, 2026 11:32
Signed-off-by: Nate Bracy <nate@bracy.dev>
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.

Deprecation warnings: asyncio.iscoroutinefunction

2 participants