mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Fix popen usage.
This commit is contained in:
		
							parent
							
								
									f413fb06b9
								
							
						
					
					
						commit
						e89cd17dfa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -390,8 +390,8 @@ class CAB:
 | 
				
			||||||
            cabarc = "cabarc.exe"
 | 
					            cabarc = "cabarc.exe"
 | 
				
			||||||
        cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name)
 | 
					        cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name)
 | 
				
			||||||
        p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
 | 
					        p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
 | 
				
			||||||
                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0]
 | 
					                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
 | 
				
			||||||
        for line in (p.stdout, p.stdin):
 | 
					        for line in p.stdout:
 | 
				
			||||||
            if line.startswith("  -- adding "):
 | 
					            if line.startswith("  -- adding "):
 | 
				
			||||||
                sys.stdout.write(".")
 | 
					                sys.stdout.write(".")
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue