From ebd44d39a599d478069ce17ee114b910d17d4899 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Wed, 18 Oct 2023 00:14:45 +0300 Subject: [PATCH] cassandra/cluster.py: make asyncio default insted of asyncore since python 3.12 is deprecating asyncore, we should make asyncio the default fallback event loop. now that it's fixed and we verified it's working in multiple python versions we support (from 3.8 - 3.12) --- cassandra/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassandra/cluster.py b/cassandra/cluster.py index c1a988ad49..dc116bf45b 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -139,7 +139,7 @@ def _is_gevent_monkey_patched(): try: from cassandra.io.libevreactor import LibevConnection as DefaultConnection # NOQA except ImportError: - from cassandra.io.asyncorereactor import AsyncoreConnection as DefaultConnection # NOQA + from cassandra.io.asyncioreactor import AsyncioConnection as DefaultConnection # NOQA # Forces load of utf8 encoding module to avoid deadlock that occurs # if code that is being imported tries to import the module in a seperate