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

@ -151,8 +151,9 @@ class DaemonStream(ReadWriteCloser):
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()
async def read(self, n: int = -1) -> bytes:
return await self.reader.read(n)