Merge branch 'deprecation' into combined
This commit is contained in:
@@ -151,6 +151,11 @@ def getProcessOutput(executable, args=None, env=None, path=None, reactor=None,
|
|||||||
d = defer.Deferred()
|
d = defer.Deferred()
|
||||||
p = BackRelayWithInput(
|
p = BackRelayWithInput(
|
||||||
d, startedDeferred=startedDeferred, error_ok=error_ok, input=input)
|
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)
|
reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user