Skip to content

Commit

Permalink
Merge pull request #2340 from bc-lee/feature/deprecate-pipes-module
Browse files Browse the repository at this point in the history
Replace pipes.quote with shlex.quote in configure.py
  • Loading branch information
jhasse authored Oct 14, 2023
2 parents 7a8c494 + 0a9c9c5 commit 885b4ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

from optparse import OptionParser
import os
import pipes
import string
import shlex
import subprocess
import sys

Expand Down Expand Up @@ -262,7 +261,7 @@ def _run_command(self, cmdline):
env_keys = set(['CXX', 'AR', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS'])
configure_env = dict((k, os.environ[k]) for k in os.environ if k in env_keys)
if configure_env:
config_str = ' '.join([k + '=' + pipes.quote(configure_env[k])
config_str = ' '.join([k + '=' + shlex.quote(configure_env[k])
for k in configure_env])
n.variable('configure_env', config_str + '$ ')
n.newline()
Expand Down

0 comments on commit 885b4ef

Please sign in to comment.