From fed3afa6ae9429ca50fd75ed563251dcd104ca9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 27 Dec 2020 07:40:41 +0100 Subject: [PATCH] Coroutines --- README.md | 3 ++- index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2efaa0..26d509a 100644 --- a/README.md +++ b/README.md @@ -2319,7 +2319,8 @@ async def view(state, screen): screen.addstr(p.y, p.x, str(id_)) await asyncio.sleep(0.01) -curses.wrapper(main) +if __name__ == '__main__': + curses.wrapper(main) ```
diff --git a/index.html b/index.html index 9a75eb7..d9263e3 100644 --- a/index.html +++ b/index.html @@ -2042,7 +2042,8 @@ D = enum.Enum('D', 'n screen.addstr(p.y, p.x, str(id_)) await asyncio.sleep(0.01) -curses.wrapper(main) +if __name__ == '__main__': + curses.wrapper(main)