Skip to content

Commit 85a7211

Browse files
committed
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)
1 parent 544afd3 commit 85a7211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _is_gevent_monkey_patched():
139139
try:
140140
from cassandra.io.libevreactor import LibevConnection as DefaultConnection # NOQA
141141
except ImportError:
142-
from cassandra.io.asyncorereactor import AsyncoreConnection as DefaultConnection # NOQA
142+
from cassandra.io.asyncioreactor import AsyncioConnection as DefaultConnection # NOQA
143143

144144
# Forces load of utf8 encoding module to avoid deadlock that occurs
145145
# if code that is being imported tries to import the module in a seperate

0 commit comments

Comments
 (0)