[Python-checkins] cpython (merge 3.3 -> default): Merge: Document the addition of 'quote' to shlex in What's New.

r.david.murray python-checkins at python.org
Sat Sep 29 15:50:09 CEST 2012


http://hg.python.org/cpython/rev/c0e945c34a47
changeset:   79250:c0e945c34a47
parent:      79248:d9386e1d0b59
parent:      79249:1acfede62364
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat Sep 29 09:49:32 2012 -0400
summary:
  Merge: Document the addition of 'quote' to shlex in What's New.

files:
  Doc/whatsnew/3.3.rst |  10 +++++++++-
  1 files changed, 9 insertions(+), 1 deletions(-)


diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1534,6 +1534,15 @@
   :issue:`13245`)
 
 
+shlex
+-----
+
+* The previously undocumented helper function ``quote`` from the
+  :mod:`pipes` modules has been moved to the :mod:`shlex` module and
+  documented.  :func:`~shlex.quote` properly escapes all characters in a string
+  that might be otherwise given special meaning by the shell.
+
+
 shutil
 ------
 
@@ -1565,7 +1574,6 @@
   in :issue:`4489`.)
 
 
-
 signal
 ------
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list