Fixes to add python 3.6 compatibility

This commit is contained in:
Alex Stokes
2019-12-02 15:57:22 -08:00
parent dfdcf524b7
commit 63fd531ed0
9 changed files with 54 additions and 53 deletions

View File

@ -1,5 +1,6 @@
import asyncio
from socket import socket
import sys
from typing import List
from multiaddr import Multiaddr
@ -53,7 +54,8 @@ class TCPListener(IListener):
if self.server is None:
return
self.server.close()
await self.server.wait_closed()
if sys.version_info[0:2] > (3, 6):
await self.server.wait_closed()
self.server = None