forked from pool/python-aiosmtpd
- 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:
13
support-python-314.patch
Normal file
13
support-python-314.patch
Normal 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:
|
||||
Reference in New Issue
Block a user