fix for reactor.spawnProcess sending deprecation warning
This commit is contained in:
		@@ -151,6 +151,11 @@ def getProcessOutput(executable, args=None, env=None, path=None, reactor=None,
 | 
			
		||||
    d = defer.Deferred()
 | 
			
		||||
    p = BackRelayWithInput(
 | 
			
		||||
            d, startedDeferred=startedDeferred, error_ok=error_ok, input=input)
 | 
			
		||||
    # VISH: commands come in as unicode, but self.executes needs
 | 
			
		||||
    #       strings or process.spawn raises a deprecation warning
 | 
			
		||||
    executable = str(executable)
 | 
			
		||||
    if not args is None:
 | 
			
		||||
        args = [str(x) for x in args]
 | 
			
		||||
    reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
 | 
			
		||||
    return d
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user