mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Fixes to add python 3.6 compatibility
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import asyncio
|
||||
import sys
|
||||
|
||||
from .exceptions import RawConnError
|
||||
from .raw_connection_interface import IRawConnection
|
||||
@ -52,4 +53,5 @@ class RawConnection(IRawConnection):
|
||||
|
||||
async def close(self) -> None:
|
||||
self.writer.close()
|
||||
await self.writer.wait_closed()
|
||||
if sys.version_info[0:2] > (3, 6):
|
||||
await self.writer.wait_closed()
|
||||
|
||||
Reference in New Issue
Block a user