mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			159 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 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)
 |