File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4444import errno
4545import logging
4646import os
47- import pipes
4847import pprint
4948import shlex
5049import signal
@@ -1986,7 +1985,7 @@ def quote(*args):
19861985 """
19871986 Quote a string or a sequence of strings to be used as command line argument(s).
19881987
1989- This function is a simple wrapper around :func:`pipes .quote()` which
1988+ This function is a simple wrapper around :func:`shlex .quote()` which
19901989 adds support for quoting sequences of strings (lists and tuples). For
19911990 example the following calls are all equivalent::
19921991
@@ -2006,7 +2005,7 @@ def quote(*args):
20062005 else :
20072006 value = args [0 ]
20082007 if not isinstance (value , (list , tuple )):
2009- return pipes .quote (value )
2008+ return shlex .quote (value )
20102009 return ' ' .join (map (quote , value ))
20112010
20122011
You can’t perform that action at this time.
0 commit comments