Skip to content

Commit

Permalink
build: avoid usage of pipes library
Browse files Browse the repository at this point in the history
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 <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
  • Loading branch information
VoltrexKeyva authored and RafaelGSS committed Apr 7, 2023
1 parent e29a146 commit 3970537
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configure.py
Expand Up @@ -5,7 +5,6 @@
import errno
import argparse
import os
import pipes
import pprint
import re
import shlex
Expand Down Expand Up @@ -2074,7 +2073,7 @@ def make_bin_override():
pprint.pformat(output, indent=2, width=1024) + '\n')

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


Expand Down

0 comments on commit 3970537

Please sign in to comment.