mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-28 09:14:08 -04:00
Fixed deprecated options in asyncio API for Python 3.10. Fixes #58.
This commit is contained in:
parent
94749e0dde
commit
9e316ab989
3 changed files with 10 additions and 4 deletions
2
RNS/vendor/i2plib/aiosam.py
vendored
2
RNS/vendor/i2plib/aiosam.py
vendored
|
@ -25,7 +25,7 @@ async def get_sam_socket(sam_address=sam.DEFAULT_ADDRESS, loop=None):
|
|||
:param loop: (optional) event loop instance
|
||||
:return: A (reader, writer) pair
|
||||
"""
|
||||
reader, writer = await asyncio.open_connection(*sam_address, loop=loop)
|
||||
reader, writer = await asyncio.open_connection(*sam_address)
|
||||
writer.write(sam.hello("3.1", "3.1"))
|
||||
reply = parse_reply(await reader.readline())
|
||||
if reply.ok:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue