Skip to content

Commit 67af0a6

Browse files
VoltrexKeyvadanielleadams
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 2865cbb commit 67af0a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configure.py

Lines changed: 1 addition & 2 deletions
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
@@ -2127,7 +2126,7 @@ def make_bin_override():
21272126
pprint.pformat(output, indent=2, width=1024) + '\n')
21282127

21292128
write('config.status', '#!/bin/sh\nset -x\nexec ./configure ' +
2130-
' '.join([pipes.quote(arg) for arg in original_argv]) + '\n')
2129+
' '.join([shlex.quote(arg) for arg in original_argv]) + '\n')
21312130
os.chmod('config.status', 0o775)
21322131

21332132

0 commit comments

Comments
 (0)