aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/test/process_echoer.py
blob: 8a7bf6dc0d1d1241c2d43d9d1975a492cae1c65e (plain)
1
2
3
4
5
6
7
8
9
10
11
"""Write back all data it receives."""

import sys

data = sys.stdin.read(1)
while data:
    sys.stdout.write(data)
    sys.stdout.flush()
    data = sys.stdin.read(1)
sys.stderr.write("byebye")
sys.stderr.flush()