Skip to content

Commit 5ecd82b

Browse files
Revert bytes and bytearray class multiline docstrings to make IDLE happy.
1 parent 4da0acc commit 5ecd82b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Objects/bytearrayobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,8 +2885,7 @@ PyDoc_STRVAR(bytearray_doc,
28852885
"bytearray(iterable_of_ints) -> bytearray\n\
28862886
bytearray(string, encoding[, errors]) -> bytearray\n\
28872887
bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\
2888-
bytearray(int) -> bytes array of size given by the parameter initialized\n\
2889-
with null bytes\n\
2888+
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
28902889
bytearray() -> empty bytes array\n\
28912890
\n\
28922891
Construct a mutable bytearray object from:\n\

Objects/bytesobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,8 +3202,7 @@ PyDoc_STRVAR(bytes_doc,
32023202
"bytes(iterable_of_ints) -> bytes\n\
32033203
bytes(string, encoding[, errors]) -> bytes\n\
32043204
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\n\
3205-
bytes(int) -> bytes object of size given by the parameter initialized\n\
3206-
with null bytes\n\
3205+
bytes(int) -> bytes object of size given by the parameter initialized with null bytes\n\
32073206
bytes() -> empty bytes object\n\
32083207
\n\
32093208
Construct an immutable array of bytes from:\n\

0 commit comments

Comments
 (0)