mirror of
https://github.com/python/cpython.git
synced 2024-12-04 07:15:09 +08:00
51ee270876
the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
8 lines
159 B
Python
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)
|