[New-bugs-announce] [issue16051] Documentation missing pipes.quote()
Barry Morrison
report at bugs.python.org
Wed Sep 26 03:09:47 CEST 2012
New submission from Barry Morrison:
Documentation here: http://docs.python.org/library/pipes.html makes no mention of quote()
But the link to Source code: Lib/pipes.py http://hg.python.org/cpython/file/2.7/Lib/pipes.py has:
267 def quote(file):
268 """Return a shell-escaped version of the file string."""
269 for c in file:
270 if c not in _safechars:
271 break
272 else:
273 if not file:
274 return "''"
275 return file
276 # use single quotes, and put single quotes into double quotes
277 # the string $'b is then quoted as '$'"'"'b'
278 return "'" + file.replace("'", "'\"'\"'") + "'"
First _ever_ bug report, apologies if this is incorrect.
----------
assignee: docs at python
components: Documentation
messages: 171326
nosy: Barry.Morrison, docs at python
priority: normal
severity: normal
status: open
title: Documentation missing pipes.quote()
type: enhancement
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16051>
_______________________________________
More information about the New-bugs-announce
mailing list