Skip to content

Commit 84e3ccc

Browse files
committed
Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object.
1 parent 0f93d3d commit 84e3ccc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Objects/bytes_methods.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ _Py_bytes_swapcase(char *result, char *s, Py_ssize_t len)
366366
PyDoc_STRVAR_shared(_Py_maketrans__doc__,
367367
"B.maketrans(frm, to) -> translation table\n\
368368
\n\
369-
Return a translation table (a bytes object of length 256)\n\
370-
suitable for use in bytes.translate where each byte in frm is\n\
371-
mapped to the byte at the same position in to.\n\
372-
The strings frm and to must be of the same length.");
369+
Return a translation table (a bytes object of length 256) suitable\n\
370+
for use in the bytes or bytearray translate method where each byte\n\
371+
in frm is mapped to the byte at the same position in to.\n\
372+
The bytes objects frm and to must be of the same length.");
373373

374374
static Py_ssize_t
375375
_getbuffer(PyObject *obj, Py_buffer *view)

0 commit comments

Comments
 (0)