Strip popen output
This commit is contained in:
		
							parent
							
								
									4c18fe5089
								
							
						
					
					
						commit
						5805d1ddf3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -178,7 +178,7 @@ def popen(*args: str) -> str:
 | 
				
			||||||
    if proc.returncode != 0:
 | 
					    if proc.returncode != 0:
 | 
				
			||||||
        raise RuntimeError(f"{args[0]}: Process exited with code {proc.returncode}")
 | 
					        raise RuntimeError(f"{args[0]}: Process exited with code {proc.returncode}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return proc.stdout.decode("utf-8")
 | 
					    return proc.stdout.decode("utf-8").strip()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def readdir(path: str) -> list[str]:
 | 
					def readdir(path: str) -> list[str]:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue