@@ -148,10 +148,10 @@ def _try_libev_import():
148
148
except DependencyException as e :
149
149
return (None , e )
150
150
151
- def _try_asyncore_import ():
151
+ def _try_asyncio_import ():
152
152
try :
153
- from cassandra .io .asyncorereactor import AsyncoreConnection
154
- return (AsyncoreConnection ,None )
153
+ from cassandra .io .asyncioreactor import AsyncioConnection
154
+ return (AsyncioConnection ,None )
155
155
except DependencyException as e :
156
156
return (None , e )
157
157
@@ -167,7 +167,7 @@ def _connection_reduce_fn(val,import_fn):
167
167
168
168
log = logging .getLogger (__name__ )
169
169
170
- conn_fns = (_try_gevent_import , _try_eventlet_import , _try_libev_import , _try_asyncore_import )
170
+ conn_fns = (_try_gevent_import , _try_eventlet_import , _try_libev_import , _try_asyncio_import )
171
171
(conn_class , excs ) = reduce (_connection_reduce_fn , conn_fns , (None ,[]))
172
172
if not conn_class :
173
173
raise DependencyException ("Unable to load a default connection class" , excs )
@@ -875,15 +875,15 @@ def default_retry_policy(self, policy):
875
875
This determines what event loop system will be used for managing
876
876
I/O with Cassandra. These are the current options:
877
877
878
- * :class:`cassandra.io.asyncorereactor.AsyncoreConnection `
878
+ * :class:`cassandra.io.asyncioreactor.AsyncioConnection `
879
879
* :class:`cassandra.io.libevreactor.LibevConnection`
880
880
* :class:`cassandra.io.eventletreactor.EventletConnection` (requires monkey-patching - see doc for details)
881
881
* :class:`cassandra.io.geventreactor.GeventConnection` (requires monkey-patching - see doc for details)
882
882
* :class:`cassandra.io.twistedreactor.TwistedConnection`
883
883
* EXPERIMENTAL: :class:`cassandra.io.asyncioreactor.AsyncioConnection`
884
884
885
- By default, ``AsyncoreConnection `` will be used, which uses
886
- the ``asyncore `` module in the Python standard library.
885
+ By default, ``AsyncioConnection `` will be used, which uses
886
+ the ``asyncio `` module in the Python standard library.
887
887
888
888
If ``libev`` is installed, ``LibevConnection`` will be used instead.
889
889
0 commit comments