import asynccontextmanager from context lib and remove async_generator dep

This commit is contained in:
pacrob
2024-04-27 09:59:06 -06:00
committed by Paul Robinson
parent 8dda7b933e
commit 827d16b106
8 changed files with 16 additions and 18 deletions

View File

@ -78,8 +78,8 @@ async def run(port: int, destination: str, seed: int = None) -> None:
await stream.close()
response = await stream.read()
print(f"Sent: {msg}")
print(f"Got: {response}")
print(f"Sent: {msg.decode('utf-8')}")
print(f"Got: {response.decode('utf-8')}")
def main() -> None: