Skip to content

Commit 885b4ef

Browse files
authored
Merge pull request #2340 from bc-lee/feature/deprecate-pipes-module
Replace pipes.quote with shlex.quote in configure.py
2 parents 7a8c494 + 0a9c9c5 commit 885b4ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

configure.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
from optparse import OptionParser
2323
import os
24-
import pipes
25-
import string
24+
import shlex
2625
import subprocess
2726
import sys
2827

@@ -262,7 +261,7 @@ def _run_command(self, cmdline):
262261
env_keys = set(['CXX', 'AR', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS'])
263262
configure_env = dict((k, os.environ[k]) for k in os.environ if k in env_keys)
264263
if configure_env:
265-
config_str = ' '.join([k + '=' + pipes.quote(configure_env[k])
264+
config_str = ' '.join([k + '=' + shlex.quote(configure_env[k])
266265
for k in configure_env])
267266
n.variable('configure_env', config_str + '$ ')
268267
n.newline()

0 commit comments

Comments
 (0)