Apply PR feedback

This commit is contained in:
Alex Stokes
2019-12-10 17:07:21 -08:00
parent d516cf51b8
commit 3b9d7c7acd
7 changed files with 29 additions and 23 deletions

View File

@ -53,5 +53,6 @@ class RawConnection(IRawConnection):
async def close(self) -> None:
self.writer.close()
if sys.version_info[0:2] > (3, 6):
await self.writer.wait_closed()
if sys.version_info < (3, 7):
return
await self.writer.wait_closed()