Skip to content

Commit 10e9545

Browse files
committed
Remove loop parameters that are not used in 3.10
In Python 3.9, they are optional, and we default to the active event loop.
1 parent 41fd1a9 commit 10e9545

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rethinkdb/asyncio_net/net_asyncio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def wait(future):
7575
new_timeout = max(deadline - loop.time(), 0)
7676
else:
7777
new_timeout = None
78-
return (yield from asyncio.wait_for(future, new_timeout, loop=loop))
78+
return (yield from asyncio.wait_for(future, new_timeout))
7979

8080
return wait
8181

@@ -202,7 +202,6 @@ def connect(self, timeout):
202202
self._streamreader, self._streamwriter = yield from asyncio.open_connection(
203203
self._parent.host,
204204
self._parent.port,
205-
loop=self._io_loop,
206205
ssl=ssl_context,
207206
)
208207
self._streamwriter.get_extra_info("socket").setsockopt(
@@ -233,7 +232,6 @@ def connect(self, timeout):
233232
response = yield from asyncio.wait_for(
234233
_read_until(self._streamreader, b"\0"),
235234
timeout,
236-
loop=self._io_loop,
237235
)
238236
response = response[:-1]
239237
except ReqlAuthError:

0 commit comments

Comments
 (0)