Message171326
| 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:47 | Barry.Morrison | set | recipients:
+ Barry.Morrison, docs@python |
| 2012年09月26日 01:09:47 | Barry.Morrison | set | messageid: <1348621787.28.0.392137899077.issue16051@psf.upfronthosting.co.za> |
| 2012年09月26日 01:09:26 | Barry.Morrison | link | issue16051 messages |
| 2012年09月26日 01:09:25 | Barry.Morrison | create |
|