Python code coverage for Lib/test/test_asyncio/echo3.py
# | count | content |
---|---|---|
1 | n/a | import os |
2 | n/a | |
3 | n/a | if __name__ == '__main__': |
4 | n/a | while True: |
5 | n/a | buf = os.read(0, 1024) |
6 | n/a | if not buf: |
7 | n/a | break |
8 | n/a | try: |
9 | n/a | os.write(1, b'OUT:'+buf) |
10 | n/a | except OSError as ex: |
11 | n/a | os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii')) |