Skip to content

Commit 3970537

Browse files
VoltrexKeyvaRafaelGSS
authored andcommitted
build: avoid usage of pipes library
Python's `pipes` library is deprecated and will be removed in Python version 3.13, so remove it's import and replace `pipes.quote()` with `shlex.quote()`. PR-URL: #47271 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
1 parent e29a146 commit 3970537

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configure.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import errno
66
import argparse
77
import os
8-
import pipes
98
import pprint
109
import re
1110
import shlex
@@ -2074,7 +2073,7 @@ def make_bin_override():
20742073
pprint.pformat(output, indent=2, width=1024) + '\n')
20752074

20762075
write('config.status', '#!/bin/sh\nset -x\nexec ./configure ' +
2077-
' '.join([pipes.quote(arg) for arg in original_argv]) + '\n')
2076+
' '.join([shlex.quote(arg) for arg in original_argv]) + '\n')
20782077
os.chmod('config.status', 0o775)
20792078

20802079

0 commit comments

Comments
 (0)