15
0

- Add patch support-python-314.patch:

* Use inspect.iscoroutine, rather than asyncio.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtpd?expand=0&rev=36
This commit is contained in:
2025-11-10 05:00:49 +00:00
committed by Git OBS Bridge
commit f15213952d
7 changed files with 288 additions and 0 deletions

13
support-python-314.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: aiosmtpd-1.4.6/aiosmtpd/smtp.py
===================================================================
--- aiosmtpd-1.4.6.orig/aiosmtpd/smtp.py
+++ aiosmtpd-1.4.6/aiosmtpd/smtp.py
@@ -1526,7 +1526,7 @@ class SMTP(asyncio.StreamReaderProtocol)
assert self.session is not None
args = (self.session.peer, self.envelope.mail_from,
self.envelope.rcpt_tos, self.envelope.content)
- if asyncio.iscoroutinefunction(
+ if inspect.iscoroutinefunction(
self.event_handler.process_message):
status = await self.event_handler.process_message(*args)
else: