Skip to content

Commit 486cce4

Browse files
committed
replace deprecated pipes with shlex
1 parent 5f27cae commit 486cce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ninja/configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from optparse import OptionParser
2525
import os
26-
import pipes
26+
import shlex
2727
import string
2828
import subprocess
2929
import sys
@@ -257,7 +257,7 @@ def _run_command(self, cmdline):
257257
env_keys = set(['CXX', 'AR', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS'])
258258
configure_env = dict((k, os.environ[k]) for k in os.environ if k in env_keys)
259259
if configure_env:
260-
config_str = ' '.join([k + '=' + pipes.quote(configure_env[k])
260+
config_str = ' '.join([k + '=' + shlex.quote(configure_env[k])
261261
for k in configure_env])
262262
n.variable('configure_env', config_str + '$ ')
263263
n.newline()

0 commit comments

Comments
 (0)