From aeb377dbbc9baabd327d0ccdeeda6e80cc2f62ba Mon Sep 17 00:00:00 2001 From: Matias Guijarro Date: Thu, 7 Oct 2021 15:51:19 +0200 Subject: [PATCH] Compatibility with Python >3.6 on Windows In python 3.7, `asyncio.windows_utils.socketpair` does not exist anymore - it is just replaced by `socket.socketpair` --- aiogevent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogevent.py b/aiogevent.py index 201a5ae..04a62ef 100644 --- a/aiogevent.py +++ b/aiogevent.py @@ -9,7 +9,7 @@ try: import asyncio - if sys.platform == 'win32': + if sys.platform == 'win32' and sys.version_info.minor <= 6: from asyncio.windows_utils import socketpair else: socketpair = socket.socketpair