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

John Wiseman report at bugs.python.org
Fri Dec 11 00:19:06 CET 2009


New submission from John Wiseman <jjwiseman at gmail.com>:

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 should be something like
mycommand arg1 '' arg3

----------
components: Library (Lib)
messages: 96225
nosy: jjwiseman
severity: normal
status: open
title: pipes.quote does not handle zero-length args correctly
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7476>
_______________________________________


More information about the New-bugs-announce mailing list