[issue7476] pipes.quote does not handle zero-length args correctly

2009-12-10 Thread Eric Smith
Eric Smith added the comment: In addition, quote is undocumented, although there is a test for it. It should also be documented and/or have a docstring. -- nosy: +eric.smith ___ Python tracker _

[issue7476] pipes.quote does not handle zero-length args correctly

2009-12-10 Thread John Wiseman
New submission from John Wiseman : In python 2.5.2, I believe pipes.quote gives the wrong result for zero- length arguments. >>> from pipes import quote >>> args = ['arg1', '', 'arg3'] >>> print 'mycommand %s' % (' '.join(quote(arg) for arg in args)) mycommand arg1 arg3 I think the result shou