gh-129559: Remove extra dot in bytearray.resize AC (#140134)

This commit is contained in:
Cody Maloney 2025-10-14 19:39:17 -07:00 committed by GitHub
parent 0bcb1c25f7
commit 6416e6ebe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -1469,14 +1469,14 @@ bytearray_removesuffix_impl(PyByteArrayObject *self, Py_buffer *suffix)
/*[clinic input] /*[clinic input]
bytearray.resize bytearray.resize
size: Py_ssize_t size: Py_ssize_t
New size to resize to.. New size to resize to.
/ /
Resize the internal buffer of bytearray to len. Resize the internal buffer of bytearray to len.
[clinic start generated code]*/ [clinic start generated code]*/
static PyObject * static PyObject *
bytearray_resize_impl(PyByteArrayObject *self, Py_ssize_t size) 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); Py_ssize_t start_size = PyByteArray_GET_SIZE(self);
int result = PyByteArray_Resize((PyObject *)self, size); int result = PyByteArray_Resize((PyObject *)self, size);

View file

@ -599,7 +599,7 @@ PyDoc_STRVAR(bytearray_resize__doc__,
"Resize the internal buffer of bytearray to len.\n" "Resize the internal buffer of bytearray to len.\n"
"\n" "\n"
" size\n" " size\n"
" New size to resize to.."); " New size to resize to.");
#define BYTEARRAY_RESIZE_METHODDEF \ #define BYTEARRAY_RESIZE_METHODDEF \
{"resize", (PyCFunction)bytearray_resize, METH_O, bytearray_resize__doc__}, {"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); return bytearray_sizeof_impl((PyByteArrayObject *)self);
} }
/*[clinic end generated code: output=be6d28193bc96a2c input=a9049054013a1b77]*/ /*[clinic end generated code: output=fdfe41139c91e409 input=a9049054013a1b77]*/