File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1984,7 +1984,7 @@ def reset(self):
1984
1984
1985
1985
def quote (* args ):
1986
1986
"""
1987
- Quote a string or a sequence of strings to be used as command line argument(s).
1987
+ Quote an object or a sequence of objects to be used as command line argument(s).
1988
1988
1989
1989
This function is a simple wrapper around :func:`pipes.quote()` which
1990
1990
adds support for quoting sequences of strings (lists and tuples). For
@@ -2007,7 +2007,7 @@ def quote(*args):
2007
2007
value = args [0 ]
2008
2008
if not isinstance (value , (list , tuple )):
2009
2009
return pipes .quote (value )
2010
- return ' ' .join (map (quote , value ))
2010
+ return ' ' .join (map (quote , ( str ( e ) for e in value ) ))
2011
2011
2012
2012
2013
2013
def which (program , mode = os .F_OK | os .X_OK , path = None ):
You can’t perform that action at this time.
0 commit comments