We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b874a5 commit fed3afaCopy full SHA for fed3afa
README.md
@@ -2319,7 +2319,8 @@ async def view(state, screen):
2319
screen.addstr(p.y, p.x, str(id_))
2320
await asyncio.sleep(0.01)
2321
2322
-curses.wrapper(main)
+if __name__ == '__main__':
2323
+ curses.wrapper(main)
2324
```
2325
<br>
2326
index.html
@@ -2042,7 +2042,8 @@
2042
2043
<span class="hljs-keyword">await</span> asyncio.sleep(<span class="hljs-number">0.01</span>)
2044
2045
+<span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">'__main__'</span>:
2046
2047
</code></pre></div></div>
2048
2049
0 commit comments