]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94089)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jun 2022 08:47:52 +0000 (01:47 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 08:47:52 +0000 (10:47 +0200)
(cherry picked from commit 0709586744ec58dd60492e16b08fff6dc1149a0a)

Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
Modules/_hashopenssl.c
Modules/_operator.c

index 203366e380d4e72e3a27bdc0fe0e4338a2ebec97..3c40f09f7a0951e04855151ef5d8010a5245c666 100644 (file)
@@ -2002,7 +2002,7 @@ _hashlib_compare_digest_impl(PyObject *module, PyObject *a, PyObject *b)
                     PyUnicode_GET_LENGTH(a),
                     PyUnicode_GET_LENGTH(b));
     }
-    /* fallback to buffer interface for bytes, bytesarray and other */
+    /* fallback to buffer interface for bytes, bytearray and other */
     else {
         Py_buffer view_a;
         Py_buffer view_b;
index 739ae5b229e1e0872446181b8dcd5797c77a7f75..6a2520579091f6a13659cd332bbb672e7089ac0d 100644 (file)
@@ -839,7 +839,7 @@ _operator__compare_digest_impl(PyObject *module, PyObject *a, PyObject *b)
                     PyUnicode_GET_LENGTH(a),
                     PyUnicode_GET_LENGTH(b));
     }
-    /* fallback to buffer interface for bytes, bytesarray and other */
+    /* fallback to buffer interface for bytes, bytearray and other */
     else {
         Py_buffer view_a;
         Py_buffer view_b;