From 4eb301d4b0855be3aad56bb72b536ad7dce81ef8 Mon Sep 17 00:00:00 2001 From: pineiden Date: Thu, 14 Apr 2022 11:23:25 -0400 Subject: [PATCH] up 3.10 --- rethinkdb/ast.py | 2 +- rethinkdb/asyncio_net/net_asyncio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rethinkdb/ast.py b/rethinkdb/ast.py index 7bd73b0c..a8125eef 100644 --- a/rethinkdb/ast.py +++ b/rethinkdb/ast.py @@ -92,7 +92,7 @@ def expr(val, nesting_depth=20): if isinstance(val, RqlQuery): return val - elif isinstance(val, collections.Callable): + elif isinstance(val, collections.abc.Callable): return Func(val) elif isinstance(val, (datetime.datetime, datetime.date)): if not hasattr(val, "tzinfo") or not val.tzinfo: diff --git a/rethinkdb/asyncio_net/net_asyncio.py b/rethinkdb/asyncio_net/net_asyncio.py index 781081e5..3d4be4ee 100644 --- a/rethinkdb/asyncio_net/net_asyncio.py +++ b/rethinkdb/asyncio_net/net_asyncio.py @@ -202,7 +202,7 @@ def connect(self, timeout): self._streamreader, self._streamwriter = yield from asyncio.open_connection( self._parent.host, self._parent.port, - loop=self._io_loop, + #loop=self._io_loop, droped at py3.10 ssl=ssl_context, ) self._streamwriter.get_extra_info("socket").setsockopt(