mirror of
https://github.com/python/cpython
synced 2026-10-18 08:41:40 +03:00
the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
7 lines
129 B
Python
7 lines
129 B
Python
"""When called as a script, consumes the input"""
|
|
|
|
import sys
|
|
|
|
if __name__ = "__main__":
|
|
for line in sys.stdin:
|
|
pass
|