Eliminate superfulous parse-cmdify pairs

delegator.run() accepts a list just fine, so there's no need to convert it
back to string.
This commit is contained in:
Tzu-ping Chung
2018-11-28 19:47:13 +08:00
parent f4c325c668
commit c08c83da3a
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -1416,8 +1416,6 @@ def pip_install(
pip_config.update(
{"PIP_SRC": vistir.misc.fs_str(project.virtualenv_src_location)}
)
cmd = Script.parse(pip_command)
pip_command = cmd.cmdify()
c = delegator.run(pip_command, block=block, env=pip_config)
return c
+1 -1
View File
@@ -508,7 +508,7 @@ def resolve(cmd, sp):
from .vendor.vistir.compat import to_native_string
EOF.__module__ = "pexpect.exceptions"
from ._compat import decode_output
c = delegator.run(Script.parse(cmd).cmdify(), block=False, env=os.environ.copy())
c = delegator.run(cmd, block=False, env=os.environ.copy())
_out = decode_output("")
result = None
out = to_native_string("")