zulip_tools.run: Remove shell=True support.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2018-07-18 17:26:43 -04:00
committed by Tim Abbott
parent d581ad82ca
commit ed0292629b

View File

@@ -174,10 +174,6 @@ def run(args, **kwargs):
# Output what we're doing in the `set -x` style
print("+ %s" % (" ".join(map(shlex.quote, args)),))
if kwargs.get('shell'):
# With shell=True we can only pass string to Popen
args = " ".join(args)
try:
subprocess.check_call(args, **kwargs)
except subprocess.CalledProcessError: