https://github.com/python/cpython/commit/6416e6ebe5b88087ada6f4a56972053edb9c2e01
commit: 6416e6ebe5b88087ada6f4a56972053edb9c2e01
branch: main
author: Cody Maloney <[email protected]>
committer: vstinner <[email protected]>
date: 2025-10-15T02:39:17Z
summary:
gh-129559: Remove extra dot in bytearray.resize AC (#140134)
files:
M Objects/bytearrayobject.c
M Objects/clinic/bytearrayobject.c.h
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index c519485c1cc74c..a73bfff340ce48 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -1469,14 +1469,14 @@ bytearray_removesuffix_impl(PyByteArrayObject *self,
Py_buffer *suffix)
/*[clinic input]
bytearray.resize
size: Py_ssize_t
- New size to resize to..
+ New size to resize to.
/
Resize the internal buffer of bytearray to len.
[clinic start generated code]*/
static PyObject *
bytearray_resize_impl(PyByteArrayObject *self, Py_ssize_t size)
-/*[clinic end generated code: output=f73524922990b2d9 input=75fd4d17c4aa47d3]*/
+/*[clinic end generated code: output=f73524922990b2d9 input=6c9a260ca7f72071]*/
{
Py_ssize_t start_size = PyByteArray_GET_SIZE(self);
int result = PyByteArray_Resize((PyObject *)self, size);
diff --git a/Objects/clinic/bytearrayobject.c.h
b/Objects/clinic/bytearrayobject.c.h
index ffb45ade11f6dc..6f13865177dde5 100644
--- a/Objects/clinic/bytearrayobject.c.h
+++ b/Objects/clinic/bytearrayobject.c.h
@@ -599,7 +599,7 @@ PyDoc_STRVAR(bytearray_resize__doc__,
"Resize the internal buffer of bytearray to len.\n"
"\n"
" size\n"
-" New size to resize to..");
+" New size to resize to.");
#define BYTEARRAY_RESIZE_METHODDEF \
{"resize", (PyCFunction)bytearray_resize, METH_O, bytearray_resize__doc__},
@@ -1796,4 +1796,4 @@ bytearray_sizeof(PyObject *self, PyObject
*Py_UNUSED(ignored))
{
return bytearray_sizeof_impl((PyByteArrayObject *)self);
}
-/*[clinic end generated code: output=be6d28193bc96a2c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=fdfe41139c91e409 input=a9049054013a1b77]*/
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]