Skip to content

Commit 8f40a6e

Browse files
Use shlex for printing commands
1 parent c850c7d commit 8f40a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/Stubs/make_stubs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import subprocess
66
import json
77
import glob
8+
import shlex
89
from shutil import copyfile
910

1011
def print_usage(exit_code=1):
@@ -79,7 +80,7 @@ def print_javac_output():
7980

8081
def run(cmd):
8182
"""Runs the given command, returning the exit code (nonzero on failure)"""
82-
print('\nRunning ' + ' '.join(cmd) + '\n')
83+
print('\nRunning: ' + shlex.join(cmd) + '\n')
8384
return subprocess.call(cmd)
8485

8586
print("Stubbing qltest in", testDir)

0 commit comments

Comments
 (0)