cosmopolitan/third_party/python/Lib/test/test_asyncio/echo.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
148 B
Python
Raw Normal View History

import os
if __name__ == '__main__':
while True:
buf = os.read(0, 1024)
if not buf:
break
os.write(1, buf)