Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3970537

Browse filesBrowse 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 <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
1 parent e29a146 commit 3970537
Copy full SHA for 3970537

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+1-2Lines 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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.