homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Barry.Morrison
Recipients Barry.Morrison, docs@python
Date 2012年09月26日.01:09:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348621787.28.0.392137899077.issue16051@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年09月26日 01:09:47Barry.Morrisonsetrecipients: + Barry.Morrison, docs@python
2012年09月26日 01:09:47Barry.Morrisonsetmessageid: <1348621787.28.0.392137899077.issue16051@psf.upfronthosting.co.za>
2012年09月26日 01:09:26Barry.Morrisonlinkissue16051 messages
2012年09月26日 01:09:25Barry.Morrisoncreate

AltStyle によって変換されたページ (->オリジナル) /