Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit beca27a

Browse files
committed
Fix #13834: strip() strips leading and trailing whitespace.
1 parent 886455c commit beca27a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ PyDoc_STRVAR(strip__doc__,
14371437
"B.strip([bytes]) -> bytes\n\
14381438
\n\
14391439
Strip leading and trailing bytes contained in the argument.\n\
1440-
If the argument is omitted, strip trailing ASCII whitespace.");
1440+
If the argument is omitted, strip leading and trailing ASCII whitespace.");
14411441
static PyObject *
14421442
bytes_strip(PyBytesObject *self, PyObject *args)
14431443
{

0 commit comments

Comments
 (0)