mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-07-28 07:38:27 -06:00
Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
11
Dependencies/Python/Lib/test/test_asyncio/echo3.py
vendored
Normal file
11
Dependencies/Python/Lib/test/test_asyncio/echo3.py
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
if __name__ == '__main__':
|
||||
while True:
|
||||
buf = os.read(0, 1024)
|
||||
if not buf:
|
||||
break
|
||||
try:
|
||||
os.write(1, b'OUT:'+buf)
|
||||
except OSError as ex:
|
||||
os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii'))
|
Reference in New Issue
Block a user