Skip to content

Commit af6a69f

Browse files
committed
Do not use deprecated execute2 function
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent d77fd7a commit af6a69f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/scancode/cli_test_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def run_scan_plain(
2727
"""
2828
Run a scan as a plain subprocess. Return rc, stdout, stderr.
2929
"""
30-
from commoncode.command import execute2
30+
31+
from commoncode.command import execute
3132

3233
options = add_windows_extra_timeout(options)
3334

@@ -39,7 +40,7 @@ def run_scan_plain(
3940

4041
scmd = u'scancode'
4142
scan_cmd = os.path.join(scancode_root_dir, scmd)
42-
rc, stdout, stderr = execute2(
43+
rc, stdout, stderr = execute(
4344
cmd_loc=scan_cmd,
4445
args=options,
4546
cwd=cwd,
@@ -51,7 +52,7 @@ def run_scan_plain(
5152
time.sleep(1)
5253
if '--verbose' not in options:
5354
options.append('--verbose')
54-
result = rc, stdout, stderr = execute2(
55+
result = rc, stdout, stderr = execute(
5556
cmd_loc=scan_cmd,
5657
args=options,
5758
cwd=cwd,

0 commit comments

Comments
 (0)