cpython/Lib/test/subprocessdata/qcat.py
Gregory P. Smith 51ee270876 issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag from
the C code, using pipe2() when available.  Adds unittests for close_fds and
cloexec behaviors.
2010-12-13 07:59:39 +00:00

8 lines
159 B
Python

"""When ran as a script, simulates cat with no arguments."""
import sys
if __name__ == "__main__":
for line in sys.stdin:
sys.stdout.write(line)