Skip to content

Commit c911bbf

Browse files
author
Victor Stinner
committed
str, bytes, bytearray docstring: remove unnecessary [...]
1 parent e14e212 commit c911bbf

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ bytearray_rstrip(PyByteArrayObject *self, PyObject *args)
24652465
}
24662466

24672467
PyDoc_STRVAR(decode_doc,
2468-
"B.decode([encoding='utf-8'[, errors='strict']]) -> str\n\
2468+
"B.decode(encoding='utf-8', errors='strict') -> str\n\
24692469
\n\
24702470
Decode B using the codec registered for encoding. Default encoding\n\
24712471
is 'utf-8'. errors may be given to set a different error\n\

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@ bytes_endswith(PyBytesObject *self, PyObject *args)
22892289

22902290

22912291
PyDoc_STRVAR(decode__doc__,
2292-
"B.decode([encoding='utf-8'[, errors='strict']]) -> str\n\
2292+
"B.decode(encoding='utf-8', errors='strict') -> str\n\
22932293
\n\
22942294
Decode B using the codec registered for encoding. Default encoding\n\
22952295
is 'utf-8'. errors may be given to set a different error\n\

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7393,7 +7393,7 @@ unicode_count(PyUnicodeObject *self, PyObject *args)
73937393
}
73947394

73957395
PyDoc_STRVAR(encode__doc__,
7396-
"S.encode([encoding='utf-8'[, errors='strict']]) -> bytes\n\
7396+
"S.encode(encoding='utf-8', errors='strict') -> bytes\n\
73977397
\n\
73987398
Encode S using the codec registered for encoding. Default encoding\n\
73997399
is 'utf-8'. errors may be given to set a different error\n\

0 commit comments

Comments
 (0)