[Python-checkins] cpython (3.2): Fix #13834: strip() strips leading and trailing whitespace.

georg.brandl python-checkins at python.org
Sun Jan 22 21:31:46 CET 2012


http://hg.python.org/cpython/rev/960d93deb8c2
changeset:   74579:960d93deb8c2
branch:      3.2
parent:      74575:6b436e31e1de
user:        Georg Brandl <georg at python.org>
date:        Sun Jan 22 21:31:21 2012 +0100
summary:
  Fix #13834: strip() strips leading and trailing whitespace.

files:
  Objects/bytesobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1437,7 +1437,7 @@
 "B.strip([bytes]) -> bytes\n\
 \n\
 Strip leading and trailing bytes contained in the argument.\n\
-If the argument is omitted, strip trailing ASCII whitespace.");
+If the argument is omitted, strip leading and trailing ASCII whitespace.");
 static PyObject *
 bytes_strip(PyBytesObject *self, PyObject *args)
 {

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


More information about the Python-checkins mailing list