Skip to content

Commit 3e71f65

Browse files
authored
Replace usage of "pipes" with shlex. (#112)
The pipes module is removed as of python 3.13 and was deprecated in 3.11
1 parent 1d9ce46 commit 3e71f65

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lnt/tests/nt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import traceback
1212
import urllib.error
1313
import shlex
14-
import pipes
1514

1615
try:
1716
import resource
@@ -1314,7 +1313,7 @@ def _execute_test_again(config, test_name, test_path, test_relative_path,
13141313

13151314

13161315
def _unix_quote_args(s):
1317-
return list(map(pipes.quote, shlex.split(s)))
1316+
return list(map(shlex.quote, shlex.split(s)))
13181317

13191318

13201319
# When set to true, all benchmarks will be rerun.

lnt/tests/test_suite.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
import shlex
77
import platform
8-
import pipes
98
import sys
109
import shutil
1110
import glob
@@ -865,7 +864,7 @@ def _parse_lit_output(self, path, data, cmake_vars, only_test=False):
865864
return report
866865

867866
def _unix_quote_args(self, s):
868-
return ' '.join(map(pipes.quote, shlex.split(s)))
867+
return ' '.join(map(shlex.quote, shlex.split(s)))
869868

870869
def _cp_artifacts(self, src, dest, patts):
871870
"""Copy artifacts out of the build """

0 commit comments

Comments
 (0)